knife-nodefu 0.2.0 → 0.2.1

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.
@@ -93,7 +93,11 @@ class NodefuCreate < Chef::Knife
93
93
  domain = merged_config['domain']
94
94
  vm_spec_name = node_spec['vm_spec']
95
95
  vm_spec = merged_config['vm_spec'][vm_spec_name]
96
- aux_groups = node_spec['aux_groups']
96
+ aux_groups = if node_spec['aux_groups'].nil?
97
+ []
98
+ else
99
+ node_spec['aux_groups']
100
+ end
97
101
 
98
102
  # Present the user with some totally rad visuals!!!
99
103
  ui.msg("#{ui.color('SHAZAM!',:red)} It looks like you want to launch #{ui.color((end_range - start_range + 1).to_s,:yellow)} of these:")
@@ -121,13 +125,11 @@ class NodefuCreate < Chef::Knife
121
125
  aux_groups
122
126
  end
123
127
 
124
- puts security_groups.inspect
125
-
126
128
  # A handfull of the Ec2ServerCreate command line options use a :proc field so I have to
127
129
  # populate those by hand instead of simply passing a value to its config entry
128
- Chef::Config[:knife][:aws_ssh_key_id] = vm_spec['ssh_key']
129
- Chef::Config[:knife][:image] = vm_spec['ami']
130
- Chef::Config[:knife][:region] = vm_spec['region']
130
+ Chef::Config[:knife][:aws_ssh_key_id] = vm_spec['ssh_key']
131
+ Chef::Config[:knife][:image] = vm_spec['ami']
132
+ Chef::Config[:knife][:region] = vm_spec['region']
131
133
  ec2_server_request.config[:image] = vm_spec['ami']
132
134
  ec2_server_request.config[:region] = vm_spec['region']
133
135
  ec2_server_request.config[:chef_node_name] = full_node_name
@@ -137,7 +139,6 @@ class NodefuCreate < Chef::Knife
137
139
  ec2_server_request.config[:ssh_user] = vm_spec['user']
138
140
  ec2_server_request.config[:availability_zone] = vm_spec['az']
139
141
  ec2_server_request.config[:distro] = vm_spec['bootstrap']
140
- puts ec2_server_request.config.inspect
141
142
  threads << Thread.new(full_node_name,ec2_server_request) do |full_node_name,request|
142
143
  e = nil
143
144
  begin
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module Nodefu
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  MAJOR, MINOR, TINY = VERSION.split(',')
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-nodefu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-13 00:00:00.000000000 Z
12
+ date: 2013-05-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: knife-ec2