diff options
Diffstat (limited to 'lib/chef/knife/role_run_list_remove.rb')
-rw-r--r-- | lib/chef/knife/role_run_list_remove.rb | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/chef/knife/role_run_list_remove.rb b/lib/chef/knife/role_run_list_remove.rb index 0dacfee051..884f3bc28d 100644 --- a/lib/chef/knife/role_run_list_remove.rb +++ b/lib/chef/knife/role_run_list_remove.rb @@ -1,6 +1,6 @@ # # Author:: Adam Jacob (<adam@chef.io>) -# Copyright:: Copyright 2009-2016, Chef Software Inc. +# Copyright:: Copyright (c) Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -16,26 +16,25 @@ # limitations under the License. # -require "chef/knife" +require_relative "../knife" class Chef class Knife class RoleRunListRemove < Knife deps do - require "chef/role" - require "chef/json_compat" + require_relative "../role" end - banner "knife role run_list remove [ROLE] [ENTRY]" + banner "knife role run_list remove [ROLE] [ENTRY] (options)" def remove_from_env_run_list(role, environment, item_to_remove) nlist = [] role.run_list_for(environment).each do |entry| nlist << entry unless entry == item_to_remove - #unless entry == @name_args[2] + # unless entry == @name_args[2] # nlist << entry - #end + # end end role.env_run_lists_add(environment => nlist) end |