Feature: Clone recipe from git repositories I want to quickly generate recipes from existing git repositories From either the whole repository or a specific folder Background: Given I am in the "rails" project folder When I run local executable "ey-recipes" with arguments "init" Scenario: Clone a single recipe from local folder with default recipe name Given I am have a local recipe "blank" at "/tmp/ey-recipes/blank" When I run local executable "ey-recipes" with arguments "clone /tmp/ey-recipes/blank" Then file "cookbooks/blank/README.rdoc" is created And file "cookbooks/blank/README.rdoc" contains "This is a local recipe" And file "cookbooks/main/recipes/default.rb" contains "require_recipe 'blank'" And I should see exactly """ exist cookbooks create cookbooks/blank/README.rdoc append cookbooks/main/recipes/default.rb """ Scenario: Clone a single recipe from local folder with alternate recipe name Given I am have a local recipe "blank" at "/tmp/ey-recipes/blank" When I run local executable "ey-recipes" with arguments "clone /tmp/ey-recipes/blank --name myrecipe" Then file "cookbooks/myrecipe/README.rdoc" is created And file "cookbooks/myrecipe/README.rdoc" contains "This is a local recipe" And file "cookbooks/main/recipes/default.rb" contains "require_recipe 'myrecipe'" And I should see exactly """ exist cookbooks create cookbooks/myrecipe/README.rdoc append cookbooks/main/recipes/default.rb """ @wip Scenario: Clone a recipe from engineyard/ey-cloud-recipes repository Given I am have a local recipe "blank" at "/tmp/ey-recipes/blank" When I run local executable "ey-recipes" with arguments "clone git://github.com/engineyard/ey-cloud-recipes.git --recipe emerge" Then file "cookbooks/emerge/recipes/default.rb" is created And I should see exactly """ exist cookbooks create cookbooks/emerge/definitions/enable_package.rb create cookbooks/emerge/definitions/package_use.rb create cookbooks/emerge/definitions/update_file.rb create cookbooks/emerge/README.rdoc append cookbooks/main/recipes/default.rb """ @wip Scenario: Clone repository as an entire recipe Given I am have a local recipe "blank" at "/tmp/ey-recipes/blank" When I run local executable "ey-recipes" with arguments "clone git://github.com/damm/ey-dnapi.git --name dnapi" Then file "cookbooks/dnapi/libraries/engineyard.rb" is created And I should see exactly """ exist cookbooks create cookbooks/dnapi/libraries/engineyard.rb create cookbooks/dnapi/README.rdoc append cookbooks/main/recipes/default.rb """