diff options
Diffstat (limited to 'lib/chef/knife/node_run_list_remove.rb')
-rw-r--r-- | lib/chef/knife/node_run_list_remove.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/chef/knife/node_run_list_remove.rb b/lib/chef/knife/node_run_list_remove.rb index ef03c176b8..d2bfcf6c9f 100644 --- a/lib/chef/knife/node_run_list_remove.rb +++ b/lib/chef/knife/node_run_list_remove.rb @@ -16,15 +16,15 @@ # limitations under the License. # -require 'chef/knife' +require "chef/knife" class Chef class Knife class NodeRunListRemove < Knife deps do - require 'chef/node' - require 'chef/json_compat' + require "chef/node" + require "chef/json_compat" end banner "knife node run_list remove [NODE] [ENTRY[,ENTRY]] (options)" @@ -35,11 +35,11 @@ class Chef if @name_args.size > 2 # Check for nested lists and create a single plain one entries = @name_args[1..-1].map do |entry| - entry.split(',').map { |e| e.strip } + entry.split(",").map { |e| e.strip } end.flatten else # Convert to array and remove the extra spaces - entries = @name_args[1].split(',').map { |e| e.strip } + entries = @name_args[1].split(",").map { |e| e.strip } end # iterate over the list of things to remove, @@ -50,7 +50,7 @@ class Chef else ui.warn "#{e} is not in the run list" unless e =~ /^(recipe|role)\[/ - ui.warn '(did you forget recipe[] or role[] around it?)' + ui.warn "(did you forget recipe[] or role[] around it?)" end end end |