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: a5946799050c81410f4d157820c316043266d58f
4
- data.tar.gz: 645a902a282df9ff5c19df637d90389154364a1c
3
+ metadata.gz: 737128dc537f5fb5dd1976dda2c93f622fdb937e
4
+ data.tar.gz: 3f56e0e8676d7ee3b81d1bea8db32baa79d84751
5
5
  SHA512:
6
- metadata.gz: 540e3bf84aaf7d22e505bb237c79264d52bf40e22df5239548ecc400eb7f58f96b4b8de90e43f10641af90aef6f6f306c7a28e61e11260c88060b6ee666f738f
7
- data.tar.gz: ecf9deece10e735b9cc6a8f755eb83d9d5823b2d80aafd69b48e72002c64974613dc5513a8d4d115b3c7a50e54fbe7d5930c7ab48bf3b01ab57af6164b2a12c3
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 :post_setup_tasks
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
- @post_setup_tasks = []
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
- @post_setup_tasks = nil if @post_setup_tasks == UNSET_VALUE
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
- commands << "#{rvm_do} cap #{@config.stage} rvm:install_ruby"
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
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Capistrano
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  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.1.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-07-23 00:00:00.000000000 Z
11
+ date: 2014-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler