diff options
Diffstat (limited to 'lib/chef/knife/core/hashed_command_loader.rb')
-rw-r--r-- | lib/chef/knife/core/hashed_command_loader.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/knife/core/hashed_command_loader.rb b/lib/chef/knife/core/hashed_command_loader.rb index 6eb3635726..fe351e0ea9 100644 --- a/lib/chef/knife/core/hashed_command_loader.rb +++ b/lib/chef/knife/core/hashed_command_loader.rb @@ -15,7 +15,7 @@ # limitations under the License. # -require 'chef/version' +require "chef/version" class Chef class Knife class SubcommandLoader @@ -24,7 +24,7 @@ class Chef # for the given command. # class HashedCommandLoader < Chef::Knife::SubcommandLoader - KEY = '_autogenerated_command_paths' + KEY = "_autogenerated_command_paths" attr_accessor :manifest def initialize(chef_config_dir, plugin_manifest) @@ -34,8 +34,8 @@ class Chef def guess_category(args) category_words = positional_arguments(args) - category_words.map! { |w| w.split('-') }.flatten! - find_longest_key(manifest[KEY]["plugins_by_category"], category_words, ' ') + category_words.map! { |w| w.split("-") }.flatten! + find_longest_key(manifest[KEY]["plugins_by_category"], category_words, " ") end def list_commands(pref_category=nil) |