vagrant-capistrano-push 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b58499cd21a299c8e2bc1974dd564923c67fa9f9
4
- data.tar.gz: 283104b3827d83bfbea5bae41865c3d53dc889c0
3
+ metadata.gz: a6948af53922873fb4ee279daadb2b350a2be05f
4
+ data.tar.gz: c1c04abfeb047e77916d39f124e8f49c41dd3495
5
5
  SHA512:
6
- metadata.gz: eca5678e123f190445df94aa8f2bd22f1607f38deebc59c6eecff525e0485f654293f7ef94f88c003a73d64d1a235eca90a4635775eab13500991757490cc64a
7
- data.tar.gz: af8ba239a264715628a918814a90dc7e449f3d882b86433e6ecfca3fe61dbf5f852e1abf9ab64cd7253646f2aee2d329e37c9a17880c313b50564180baf27315
6
+ metadata.gz: da192d831365b43061f1b6de12a97b6f73c5b5393088dc8482b4ea2bdb2b9eddbc9adbd20f895f6b2da3cc67b5e26b888627f0d206c8226c442348bdde5da323
7
+ data.tar.gz: f26fc31837cd2ef3511e30ffbf7dd7a6eee71ad2c5e772d88b984ab23d4c21e00a37c0838d5280466567f7c93d96e57124817719822d91c2c92dea0e8fa683ae
data/README.md CHANGED
@@ -10,7 +10,7 @@ vagrant plugin install vagrant-capistrano-push
10
10
 
11
11
  ## Usage
12
12
 
13
- ```
13
+ ```ruby
14
14
  # Vagrantfile
15
15
  config.push.define "staging", strategy: "capistrano" do |push|
16
16
  push.stage = "staging"
@@ -29,7 +29,7 @@ vagrant push production
29
29
 
30
30
  Or if you are using ENV variables:
31
31
 
32
- ```
32
+ ```ruby
33
33
  # Vagrantfile
34
34
  config.push.define "capistrano" do |push|
35
35
  push.stage = ENV["STAGE"]
@@ -6,23 +6,27 @@ module VagrantPlugins
6
6
  module CapistranoPush
7
7
  class Push < Vagrant.plugin("2", :push)
8
8
  def push
9
- result = Vagrant::Util::Subprocess.execute(
10
- 'bash',
11
- '-c',
12
- config.inline,
13
- :workdir => @env.root_path.to_s,
14
- :notify => [:stdout, :stderr]
15
- )
9
+ # Capistrano is not part of the current Vagrant bundle, so it needs to run
10
+ # in the context of the system.
11
+ Vagrant::Util::Env.with_clean_env do
12
+ result = Vagrant::Util::Subprocess.execute(
13
+ 'bash',
14
+ '-c',
15
+ config.inline,
16
+ :workdir => @env.root_path.to_s,
17
+ :notify => [:stdout, :stderr]
18
+ )
16
19
 
17
- if result.exit_code != 0
18
- raise Errors::CommandFailed,
19
- cmd: config.inline,
20
- workdir: @env.root_path.to_s,
21
- stdout: result.stdout,
22
- stderr: result.stderr
23
- end
20
+ if result.exit_code != 0
21
+ raise Errors::CommandFailed,
22
+ cmd: config.inline,
23
+ workdir: @env.root_path.to_s,
24
+ stdout: result.stdout,
25
+ stderr: result.stderr
26
+ end
24
27
 
25
- result
28
+ result
29
+ end
26
30
  end
27
31
  end
28
32
  end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module CapistranoPush
3
- VERSION = '0.0.10'
3
+ VERSION = '0.0.11'
4
4
  end
5
5
  end
data/locales/en.yml CHANGED
@@ -4,4 +4,4 @@ en:
4
4
  missing_attribute: |-
5
5
  The attribute %{attribute} was missing.
6
6
  command_failed: |-
7
- The command %{cmd} in %{workdir} failed with error %{stderr}.
7
+ The command %{cmd} failed with error %{stderr}.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-capistrano-push
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner