lib/chef/resource/machine_batch.rb in chef-provisioning-0.19 vs lib/chef/resource/machine_batch.rb in chef-provisioning-0.20
- old
+ new
@@ -20,11 +20,11 @@
attribute :machines, :kind_of => [ Array ]
attribute :max_simultaneous, :kind_of => [ Integer ]
attribute :from_recipe
- # These four attributes are for when you pass names or MachineSpecs to
+ # These four attributes are for when you pass names or ManagedEntrys to
# "machines". Not used for auto-batch or explicit inline machine declarations.
attribute :driver
attribute :chef_server
attribute :machine_options
attribute :files, :kind_of => [ Array ]
@@ -56,10 +56,10 @@
value_string = value.respond_to?(:to_text) ? value.to_text : value.inspect
text << " #{ivar.to_s.sub(/^@/,'')} #{value_string}\n"
end
end
machine_names = @machines.map do |m|
- if m.is_a?(Chef::Provisioning::MachineSpec)
+ if m.is_a?(Chef::Provisioning::ManagedEntry)
m.name
elsif m.is_a?(Chef::Resource::Machine)
m.name
else
m