lib/cuken/cucumber/chef/knife.rb in cuken-0.1.4 vs lib/cuken/cucumber/chef/knife.rb in cuken-0.1.7

- old
+ new

@@ -17,13 +17,23 @@ # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # +World(::Cuken::Api::Chef::Knife) + Given /^the Knife file "([^"]*)"$/ do |path| in_current_dir do chef.client_knife_path = Pathname(path).expand_path.realdirpath end +end + +When /^I delete the Chef admin client "([^"]*)"$/ do |client_name| + delete_client(client_name) +end + +When /^I create the Chef admin client "([^"]*)"$/ do |client_name| + create_client(client_name) end When /^I successfully run Knife's "([^"]*)"$/ do |cmd| run_knife_command(cmd, false) end