vagrant-capistrano 0.1.0 → 0.2.0
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 737128dc537f5fb5dd1976dda2c93f622fdb937e
|
|
4
|
+
data.tar.gz: 3f56e0e8676d7ee3b81d1bea8db32baa79d84751
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c9a047e2bd0ba4af48c6639e42f7b48eb9575d0fef0b1b2cfb26eb4e5b8e43faafe201c45a567be6de15b4eeb7e4b187a128643240dd5bea39031652426d6b83
|
|
7
|
+
data.tar.gz: 98e1fe6d290ffb904b5b944611c4d6053e7e92ec550df42b4ff1cea056e9c9b2aff691e7c07b1a3b8f0f8249b4c50b12b69c614b8b91b83328c0dd050ed287d9
|
|
@@ -7,14 +7,16 @@ module VagrantPlugins
|
|
|
7
7
|
attr_accessor :capfile
|
|
8
8
|
attr_accessor :rubystring
|
|
9
9
|
attr_accessor :stage
|
|
10
|
-
attr_accessor :
|
|
10
|
+
attr_accessor :tasks
|
|
11
|
+
attr_accessor :environment
|
|
11
12
|
attr_accessor :hiera_root
|
|
12
13
|
|
|
13
14
|
def initialize
|
|
14
15
|
@capfile = UNSET_VALUE
|
|
15
16
|
@rubystring = UNSET_VALUE
|
|
16
17
|
@stage = UNSET_VALUE
|
|
17
|
-
@
|
|
18
|
+
@tasks = UNSET_VALUE
|
|
19
|
+
@environment = UNSET_VALUE
|
|
18
20
|
@hiera_root = UNSET_VALUE
|
|
19
21
|
end
|
|
20
22
|
|
|
@@ -22,7 +24,8 @@ module VagrantPlugins
|
|
|
22
24
|
@capfile = nil if @capfile == UNSET_VALUE
|
|
23
25
|
@rubystring = nil if @rubystring == UNSET_VALUE
|
|
24
26
|
@stage = nil if @stage == UNSET_VALUE
|
|
25
|
-
@
|
|
27
|
+
@tasks = ['misc:update_needed?', 'rvm:install_ruby','deploy:setup','deploy'] if @tasks == UNSET_VALUE
|
|
28
|
+
@environment = {} if @environment == UNSET_VALUE
|
|
26
29
|
@hiera_root = nil if @hiera_root == UNSET_VALUE
|
|
27
30
|
end
|
|
28
31
|
|
|
@@ -12,20 +12,14 @@ module VagrantPlugins
|
|
|
12
12
|
"HOSTS" => "#{@machine.ssh_info[:host]}:#{@machine.ssh_info[:port]}",
|
|
13
13
|
"HIERA_ROOT" => File.expand_path(@config.hiera_root),
|
|
14
14
|
"HIERA_CONFIG_PATH" => File.join(File.expand_path(@config.hiera_root),'hiera.yaml')
|
|
15
|
-
}
|
|
15
|
+
}.merge(@config.environment)
|
|
16
|
+
|
|
16
17
|
rvm_do = "rvm #{@config.rubystring} do "
|
|
17
18
|
commands = ["cd #{File.dirname(@config.capfile)}"]
|
|
18
|
-
|
|
19
|
-
commands << "#{rvm_do} cap #{@config.stage} deploy:setup"
|
|
20
|
-
@config.post_setup_tasks.each do |task|
|
|
19
|
+
@config.tasks.each do |task|
|
|
21
20
|
commands << "#{rvm_do} cap #{@config.stage} #{task}"
|
|
22
21
|
end
|
|
23
22
|
system(env, commands.join(" && "))
|
|
24
|
-
|
|
25
|
-
# now do cap deploy
|
|
26
|
-
commands = ["cd #{File.dirname(@config.capfile)}"]
|
|
27
|
-
commands << "#{rvm_do} cap #{@config.stage} deploy"
|
|
28
|
-
system(env, commands.join(" && "))
|
|
29
23
|
end
|
|
30
24
|
end
|
|
31
25
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vagrant-capistrano
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Martin Skinner
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-08-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|