Class: Chef::Knife::RoleConvert

Inherits:
Chef::Knife show all
Defined in:
lib/chef/knife/role_convert.rb

Instance Method Summary collapse

Instance Method Details

#runObject



39
40
41
42
43
44
45
46
47
# File 'lib/chef/knife/role_convert.rb', line 39

def run
  if @name_args.length < 1
    ui.error("You must supply the name of the role you wish to convert")
    exit 1
  end
  role = @name_args[0]
  converter = Chef::RoleConverter.new(role, config)
  puts converter.generate_recipe
end