Class: JA::ConvertRole
- Inherits:
-
Chef::Knife
- Object
- Chef::Knife
- JA::ConvertRole
- Defined in:
- lib/chef/knife/convert_role.rb
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
72 73 74 75 76 77 78 79 80 |
# 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 |