Class: Chef::Knife::RoleConvert
- Inherits:
-
Chef::Knife
- Object
- Chef::Knife
- Chef::Knife::RoleConvert
- Defined in:
- lib/chef/knife/role_convert.rb
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
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 |