class JA::ConvertRole
Public Instance Methods
run()
click to toggle source
# File lib/chef/knife/convert_role.rb, line 72 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::Convert::Role.new(role, config) puts converter.generate_recipe end