CHEF-4591: Knife commands to manipulate env_run_list on nodes

Unit tests show that the following functions have been added: 

knife role env_run_list add ROLE ENV cookbook(s) (optional - :after)
knife role env_run_list clear ROLE ENV
knife role env_run_list remove ROLE ENV cookbook
knife role env_run_list replace ROLE ENV old_cookbook new_cookbook
knife role env_run_list set ROLE ENV cookbook(s)
I will take a pass at that in the next day or two.  It has been a while
since I did this work :)
On Nov 12, 2014 4:18 PM, "Tyler Ball" <notifications@github.com> wrote:

> In spec/unit/knife/role_env_run_list_add_spec.rb:
>
> > +    @knife = Chef::Knife::RoleEnvRunListAdd.new
> > +    @knife.config = {
> > +      :after => nil
> > +    }
> > +    @knife.name_args = [ "will", "QA", "role[monkey]" ]
> > +    @knife.stub!(:output).and_return(true)
> > +    @role = Chef::Role.new()
> > +    @role.stub!(:save).and_return(true)
> > +    Chef::Role.stub!(:load).and_return(@role)
> > +  end
> > +
> > +  describe "run" do
> > +
> > +#    it "should display all the things" do
> > +#      @knife.run
> > +#      @role.to_json.should == 'show all the things'
>
> We updated to use the RSpec 3 syntax. Can you update all the .should
> expectations to use the expect(@role.to_json).to eq('show all the things')
> form?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/opscode/chef/pull/1026/files#r20252138>.
>