Sha256: 08d5ffc57782cbbdc8fffe1ac5a2e0c1b25dcf48e38d792ba560ab4712ba7fdf

Contents?: true

Size: 1.19 KB

Versions: 1

Compression:

Stored size: 1.19 KB

Contents

Given /^I am in the "([^\"]*)" project folder$/ do |project|
  project_folder = File.expand_path(File.join(@fixtures_path, "projects", project))
  in_tmp_folder do
    FileUtils.rm_rf(project)
    FileUtils.cp_r(project_folder, project)
    setup_active_project_folder(project)
  end
end

Given /^I am have a local recipe "([^\"]*)" at "\/tmp\/ey-recipes\/([^"]*)"$/ do |name, repeat_name|
  name.should == repeat_name
  fixture_recipe = File.join(@fixtures_path, "recipes", name)
  FileUtils.rm_rf(@tmp_recipes_path)
  FileUtils.mkdir_p(@tmp_recipes_path)
  FileUtils.cp_r(fixture_recipe, @tmp_recipes_path)
end

Given /^I am have a local sm extension "([^"]*)" at "\/tmp\/ey-recipes\/([^"]*)"$/ do |name, repeat_name|
  name.should == repeat_name
  fixture_recipe = File.join(@fixtures_path, "sm_exts", name)
  FileUtils.rm_rf(@tmp_recipes_path)
  FileUtils.mkdir_p(@tmp_recipes_path)
  FileUtils.cp_r(fixture_recipe, @tmp_recipes_path)
  FileUtils.chdir(File.join(@tmp_recipes_path, name)) do
    `git init`
    `git add .`
    `git commit -m 'Ready for testing'`
  end
end

Given /^project is a git repository$/ do
  in_project_folder do
    `git init`
    `git add .`
    `git commit -m 'Ready for testing'`
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
engineyard-recipes-0.5.0 features/step_definitions/fixture_project_steps.rb