vagrant-hitch 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/vagrant-hitch.rb CHANGED
@@ -87,7 +87,7 @@ module VagrantHitch
87
87
  def self.setup_provisioners(profile, node_config, config, config_dir)
88
88
  # Setup Shell provisioner
89
89
  if node_config.has_key?('shell')
90
- node_config.deep_merge!(@shell_provisioner_defaults) if !@shell_provisioner_defaults.nil?
90
+ node_config.deep_merge(@shell_provisioner_defaults) if !@shell_provisioner_defaults.nil?
91
91
  config.vm.provision :shell do |shell|
92
92
  shell.inline = node_config['shell']['inline'] if node_config['shell'].has_key?('inline')
93
93
  shell.args = node_config['shell']['args'] if node_config['shell'].has_key?('args')
@@ -98,7 +98,7 @@ module VagrantHitch
98
98
  # Setup Puppet Provisioner
99
99
  if node_config.has_key?('puppet')
100
100
  # Import any defaults set by the Puppet Provisioner
101
- node_config.deep_merge!(@puppet_provisioner_defaults) if !@puppet_provisioner_defaults.nil?
101
+ node_config.deep_merge(@puppet_provisioner_defaults) if !@puppet_provisioner_defaults.nil?
102
102
 
103
103
  config.vm.provision :puppet do |puppet|
104
104
  puppet.module_path = node_config['puppet']['modules']
@@ -125,7 +125,7 @@ module VagrantHitch
125
125
  # Setup Chef Provisioner
126
126
  if node_config.has_key?('chef')
127
127
  # Import any defaults set by the Chef Provisioner
128
- node_config.deep_merge!(@chef_provisioner_defaults) if !@chef_provisioner_defaults.nil?
128
+ node_config.deep_merge(@chef_provisioner_defaults) if !@chef_provisioner_defaults.nil?
129
129
 
130
130
  config.vm.provision :chef_solo do |chef|
131
131
  chef.log_level = node_config['chef']['log_level'].to_sym
@@ -139,7 +139,7 @@ module VagrantHitch
139
139
  # Setup Puppet Server Provisioner
140
140
  if node_config.has_key?('puppet_server')
141
141
  # Import any defaults set by the Puppet Server Provisioner
142
- node_config.deep_merge!(@puppet_server_provisioner_defaults) if !@puppet_server_provisioner_defaults.nil?
142
+ node_config.deep_merge(@puppet_server_provisioner_defaults) if !@puppet_server_provisioner_defaults.nil?
143
143
 
144
144
  config.vm.provision :puppet_server do |puppet|
145
145
  puppet.puppet_server = node_config['puppet_server']['server']
data/spec/hitch_spec.rb CHANGED
@@ -5,7 +5,7 @@ require File.join(File.dirname(__FILE__),'..','/lib/vagrant-hitch')
5
5
  describe 'Hash' do
6
6
  let(:a) { {:string => "a", :array => [ 0,1,2 ], :hash => { :one => '1', :two => '2' } } }
7
7
  let(:b) { {:string => "b", :array => [ 3,4,5 ], :hash => { :three => '3', :four => '4' } } }
8
- let(:ab) { {:string => "b", :array => [0,1,2,3,4,5 ], :hash => {:one => '1', :two => '2', :three => '3', :four => '4' } } }
8
+ let(:ab) { {:string => "a", :array => [0,1,2,3,4,5 ], :hash => {:one => '1', :two => '2', :three => '3', :four => '4' } } }
9
9
 
10
10
  it 'Hashes should have deep merge available' do
11
11
  a.should respond_to(:deep_merge)
@@ -13,7 +13,7 @@ describe 'Hash' do
13
13
  end
14
14
 
15
15
  it 'merges should work as expected' do
16
- a.deep_merge!(b).should eql(ab)
16
+ a.deep_merge(b).should eql(ab)
17
17
  end
18
18
  end
19
19
 
@@ -17,5 +17,5 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.name = "vagrant-hitch"
19
19
  gem.require_paths = ["lib"]
20
- gem.version = "0.1.1"
20
+ gem.version = "0.1.2"
21
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-hitch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: