class ChefDK::ShellCompletionTemplateContext

Public Instance Methods

commands() click to toggle source
# File lib/chef-dk/command/shell_init.rb, line 30
def commands
  ChefDK.commands_map.command_specs.inject({}) do |cmd_info, (_key, cmd_spec)|
    cmd_info[cmd_spec.name] = cmd_spec.description
    cmd_info
  end
end
get_binding() click to toggle source
# File lib/chef-dk/command/shell_init.rb, line 37
def get_binding
  binding
end