vagrant-capistrano-push 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 07d43e91a05febd13ded7992e627682fb67038fb
4
- data.tar.gz: 7d7f60265ff317e7455efb7061733598083a5923
3
+ metadata.gz: b58499cd21a299c8e2bc1974dd564923c67fa9f9
4
+ data.tar.gz: 283104b3827d83bfbea5bae41865c3d53dc889c0
5
5
  SHA512:
6
- metadata.gz: 03f1d69e2c5348fbba50f4e9cda49b88754f3b65b805419caf8c9b5e8b575e9ec70741e69e830419ee9aad9b74925403602b9e8ea7a209b7368f4288b4838cee
7
- data.tar.gz: 458e8f58e92a49fdd02e1547b7919f5e83a4c3b8bf5e6b79400bff2b18821de09167901031c6ce97d676c4f9abdb11c800110156c37ad2936f04fd58ea46bf2f
6
+ metadata.gz: eca5678e123f190445df94aa8f2bd22f1607f38deebc59c6eecff525e0485f654293f7ef94f88c003a73d64d1a235eca90a4635775eab13500991757490cc64a
7
+ data.tar.gz: af8ba239a264715628a918814a90dc7e449f3d882b86433e6ecfca3fe61dbf5f852e1abf9ab64cd7253646f2aee2d329e37c9a17880c313b50564180baf27315
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Vagrant Capistrano Push
2
2
 
3
- TODO: Write a gem description
3
+ Deploy or "push" application code in the same directory as your Vagrantfile to a remote server using [capistrano](http://capistranorb.com/).
4
4
 
5
5
  ## Installation
6
6
 
@@ -10,7 +10,37 @@ vagrant plugin install vagrant-capistrano-push
10
10
 
11
11
  ## Usage
12
12
 
13
- TODO: Write usage instructions here
13
+ ```
14
+ # Vagrantfile
15
+ config.push.define "staging", strategy: "capistrano" do |push|
16
+ push.stage = "staging"
17
+ end
18
+
19
+ config.push.define "production", strategy: "capistrano" do |push|
20
+ push.stage = "production"
21
+ end
22
+ ```
23
+
24
+ And then
25
+
26
+ ```
27
+ vagrant push production
28
+ ```
29
+
30
+ Or if you are using ENV variables:
31
+
32
+ ```
33
+ # Vagrantfile
34
+ config.push.define "capistrano" do |push|
35
+ push.stage = ENV["STAGE"]
36
+ end
37
+ ```
38
+
39
+ And then
40
+
41
+ ```
42
+ vagrant push
43
+ ```
14
44
 
15
45
  ## Contributing
16
46
 
@@ -17,6 +17,7 @@ module VagrantPlugins
17
17
  if result.exit_code != 0
18
18
  raise Errors::CommandFailed,
19
19
  cmd: config.inline,
20
+ workdir: @env.root_path.to_s,
20
21
  stdout: result.stdout,
21
22
  stderr: result.stderr
22
23
  end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module CapistranoPush
3
- VERSION = '0.0.9'
3
+ VERSION = '0.0.10'
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} failed with error %{stderr}.
7
+ The command %{cmd} in %{workdir} 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.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner