lib/cuken/api/chef/knife.rb in cuken-0.1.13 vs lib/cuken/api/chef/knife.rb in cuken-0.1.15

- old
+ new

@@ -93,11 +93,11 @@ nd.name.should == node_name end def node_show(node_name, attr = :all) Pathname(chef.knife_config_file).exist?.should be_true - argv = ['node', 'show', node_name, '--no-editor', '--config', chef.knife_config_file] + argv = ['node', 'show', node_name, '--no-editor', '--config', chef.knife_config_file.to_s] unless attr == :all argv << '--attribute' << attr end if Pathname(chef.knife_config_file).exist? with_args *argv do @@ -108,11 +108,11 @@ end ::Chef::Knife.cuken end def node_role_load(hsh) - argv = ['node', 'run_list', 'add', hsh[:node], "role[#{hsh[:role]}]", '--no-editor', '--config', chef.knife_config_file] + argv = ['node', 'run_list', 'add', hsh[:node], "role[#{hsh[:role]}]", '--no-editor', '--config', chef.knife_config_file.to_s] if Pathname(chef.knife_config_file).exist? with_args *argv do ::Chef::Application::Knife.new.run end else @@ -120,10 +120,10 @@ end ::Chef::Knife.cuken end def node_create(node_name) - argv = ['node', 'create', node_name, '--no-editor', '--config', chef.knife_config_file] + argv = ['node', 'create', node_name, '--no-editor', '--config', chef.knife_config_file.to_s] if Pathname(chef.knife_config_file).exist? with_args *argv do ::Chef::Application::Knife.new.run end else