48 Commits

Author SHA1 Message Date
Paul Hinze
d03a058e04
Fix VAGRANT_CWD handling in vagrant push ftp
When testing all of the push functionality I ran into the fact that the
FTP upload code did not recognize that I had VAGRANT_CWD set, so it
wasn't finding the right files to upload.

This should make everything work properly relative to that location.
2022-01-06 18:09:30 -06:00
Chris Roberts
e7a6f397da Updates for Ruby 3.0 2021-06-21 15:57:46 -07:00
Chris Roberts
ac8ad59823 Provide custom error when attempting to push too many files with FTP
When the configured directory for FTP push has too many files, it will
generate an exception and fail due to a stack overflow. When this happens
just rescue out the exception and re-raise a custom error to provide
some context to the user on the actual problem.
2018-06-26 08:28:01 -07:00
Vít Ondruch
7187e6f909 Use Integer instead of Fixnum for Ruby 2.4+ compatibility. 2017-10-23 10:57:36 -07:00
Chris Roberts
1a62743bc5 Update rspec to recent version and fix deprecations 2017-08-03 17:54:07 -07:00
Chris Roberts
72d0eb497d Isolate push deprecation to atlas strategy only 2017-03-21 15:08:17 -07:00
Seth Vargo
b993699af6
Cleanup more files in tests 2016-05-29 00:34:00 -04:00
Seth Vargo
fb60d34236
Add unique names to all tmpdir and tempfile calls in tests + cleanup
This commit attempts to uniquely identify the temporary files and
directories that are created during test runs. Where it was a quick
fix, this commit also removes the temporary files and directories.

There are still a ton of temporary files due to calls to
.isolated_environment in the tests without an easy API an easy way
to provide a closer to that function.
2016-05-28 23:22:34 -04:00
Seth Vargo
b24e69eb60 Always use a string for Vagrantfile version 2016-02-02 09:43:28 -05:00
Hasyimi Bahrudin
77031a79b7 pushes/local-exec: add args config 2015-12-10 17:00:35 +08:00
Mitchell Hashimoto
e1f8b0d9c0 more passing tests on Windows 2015-11-20 15:24:51 -08:00
Seth Vargo
20940d1a2f Use subprocess as a poor-man's exec for local-exec
Fixes GH-5307
2015-11-19 17:03:39 -08:00
Mitchell Hashimoto
f5273c5409 push/heroku: use correct current branch [GH-6123] 2015-11-19 11:17:48 -08:00
Seth Vargo
c1623ee740 Fix port collision in tests 2015-11-18 18:47:19 -08:00
Mitchell Hashimoto
d03b1f6930 push/atlas: ATLAS_TOKEN env var works [GH-5489] 2015-07-06 11:01:50 -06:00
Seth Vargo
7d25a687ca Add tests for sending metadata 2015-02-04 11:45:02 -05:00
Seth Vargo
0dde0b3756 Use a real iso env for push tests 2015-02-03 19:19:58 -05:00
Seth Vargo
eb7eaf74ff Fix failing push test 2015-01-05 10:56:11 -05:00
Seth Vargo
81de7154e6 Fix failing test 2015-01-04 18:36:29 -05:00
Seth Vargo
6d116cb152 Fix the default FTP port 2015-01-04 18:29:59 -05:00
Seth Vargo
e7391359e8 Remove duplicate #parse_host method 2015-01-04 18:05:17 -05:00
Seth Vargo
0c7696f11e Fix SafeExec tests 2014-12-14 23:36:32 -05:00
Seth Vargo
68d82349dd Fix failing test 2014-12-11 11:15:24 -08:00
Seth Vargo
0506e17778 Update Atlas Push to use new vagrant-login API 2014-12-10 15:11:04 -08:00
Mitchell Hashimoto
ea8f6b8d04 pushes/atlas: fix tests 2014-12-09 19:32:14 -08:00
Seth Vargo
9ec16774ac Fix failing specs 2014-12-09 00:08:23 -08:00
Seth Vargo
fa7cd37e42 Send the Atlas token 2014-12-08 16:54:19 -08:00
Mitchell Hashimoto
44e6ec6df8 pushes/atlas: support custom server address 2014-12-08 11:35:15 -08:00
Mitchell Hashimoto
998c5688e8 pushes/atlas: Look for the uploader bin in the embedded dir 2014-12-08 11:35:15 -08:00
Seth Vargo
ede14d7daa Separate local-exec push script from inline 2014-12-08 11:35:14 -08:00
Seth Vargo
612eeb2265 Add local-exec push 2014-12-08 11:35:14 -08:00
Seth Vargo
9d1a43c766 Interpret the app from the CWD 2014-12-08 11:35:14 -08:00
Seth Vargo
b9e8f6e892 Interpret the current branch to push to Heroku 2014-12-08 11:35:14 -08:00
Seth Vargo
1f49b7ef62 Remove branch option (it should be interpreted) 2014-12-08 11:35:14 -08:00
Seth Vargo
c16dc5c9c9 Add heroku push implementation 2014-12-08 11:35:13 -08:00
Seth Vargo
d4058130e4 Add heroku config 2014-12-08 11:35:13 -08:00
Seth Vargo
ad15be2e16 Fix a typo in ftp config test 2014-12-08 11:35:13 -08:00
Seth Vargo
ed605c9aac Rename Harmony to Atlas, minor config changes 2014-12-08 11:35:13 -08:00
Seth Vargo
8aaf5dc578 Add the FTP push 2014-12-08 11:35:12 -08:00
Seth Vargo
80851a887f Create an Adapter to bridge the APIs between SFTP and FTP libraries 2014-12-08 11:35:12 -08:00
Seth Vargo
b90253ea8c Create ftp push config 2014-12-08 11:35:12 -08:00
Mitchell Hashimoto
fefaa8da71 pushes/harmony: use to_s.strip.empty? to check if app is set 2014-12-08 11:35:12 -08:00
Mitchell Hashimoto
1705460880 pushes/harmony: expand dir relative to Vagrantfile root path 2014-12-08 11:35:12 -08:00
Mitchell Hashimoto
efffc5f2f7 push/harmony: basic push implementation 2014-12-08 11:35:11 -08:00
Mitchell Hashimoto
168715ad7d push/harmony: ability to set uploader path 2014-12-08 11:35:11 -08:00
Mitchell Hashimoto
e7b0661a93 pushes/harmony: boilerplate, config 2014-12-08 11:35:11 -08:00
Seth Vargo
0e824cc471 Rename file push to noop push 2014-12-08 11:35:09 -08:00
Seth Vargo
8a7e546972 Add preliminary File pusher (incomplete) 2014-12-08 11:35:09 -08:00