module Chef::DSL::Recipe

Constants

NOT_PASSED

Public Instance Methods

add_machine_options(options, &block) click to toggle source
# File lib/chef/provisioning/recipe_dsl.rb, line 34
def add_machine_options(options, &block)
  run_context.chef_provisioning.add_machine_options(options, &block)
end
current_image_options() click to toggle source
# File lib/chef/provisioning/recipe_dsl.rb, line 42
def current_image_options
  run_context.chef_provisioning.current_image_options
end
current_machine_options() click to toggle source
# File lib/chef/provisioning/recipe_dsl.rb, line 30
def current_machine_options
  run_context.chef_provisioning.current_machine_options
end
machine_batch(name = nil, &block) click to toggle source
# File lib/chef/provisioning/recipe_dsl.rb, line 59
def machine_batch(name = nil, &block)
  name ||= machine_batch_default_name
  recipe = self
  declare_resource(:machine_batch, name) do
    from_recipe recipe
    instance_eval(&block)
  end
end
machine_batch_default_name() click to toggle source
# File lib/chef/provisioning/recipe_dsl.rb, line 50
def machine_batch_default_name
  @@next_machine_batch_index += 1
  if @@next_machine_batch_index > 1
    "default#{@@next_machine_batch_index}"
  else
    "default"
  end
end
with_driver(driver, options = nil, &block) click to toggle source
# File lib/chef/provisioning/recipe_dsl.rb, line 22
def with_driver(driver, options = nil, &block)
  run_context.chef_provisioning.with_driver(driver, options, &block)
end
with_image_options(image_options, &block) click to toggle source
# File lib/chef/provisioning/recipe_dsl.rb, line 38
def with_image_options(image_options, &block)
  run_context.chef_provisioning.with_image_options(image_options, &block)
end
with_machine_options(machine_options, &block) click to toggle source
# File lib/chef/provisioning/recipe_dsl.rb, line 26
def with_machine_options(machine_options, &block)
  run_context.chef_provisioning.with_machine_options(machine_options, &block)
end