Sha256: 47fc17d205dfde80c6894fd8af71dc0a6c77e6fd102f4e7f16231d4d02fb9eaf
Contents?: true
Size: 1.81 KB
Versions: 2
Compression:
Stored size: 1.81 KB
Contents
Feature: Invoking parameterless Rake tasks via Capistrano In order to invoke Rake tasks via Capistrano, As a developer using Cape, I want to use the `cap` command. Scenario: invoke Rake task 'with_period' Given a full-featured Rakefile And a file named "Capfile" with: """ load 'deploy' if respond_to?(:namespace) # cap2 differentiator # Uncomment if you are using Rails' asset pipeline # load 'deploy/assets' Dir['vendor/gems/*/recipes/*.rb','vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) } load 'config/deploy' # remove this line to skip loading any of the default tasks require 'cape' Cape do mirror_rake_tasks end """ And a file named "config/deploy.rb" with: """ require 'cape' Cape do mirror_rake_tasks end """ When I run `cap with_period` Then the output should contain: """ * executing `with_period' """ Scenario: invoke Rake task 'my_namespace:in_a_namespace' Given a full-featured Rakefile And a file named "Capfile" with: """ load 'deploy' if respond_to?(:namespace) # cap2 differentiator # Uncomment if you are using Rails' asset pipeline # load 'deploy/assets' Dir['vendor/gems/*/recipes/*.rb','vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) } load 'config/deploy' # remove this line to skip loading any of the default tasks require 'cape' Cape do mirror_rake_tasks end """ And a file named "config/deploy.rb" with: """ require 'cape' Cape do mirror_rake_tasks end """ When I run `cap my_namespace:in_a_namespace` Then the output should contain: """ * executing `my_namespace:in_a_namespace' """
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cape-1.0.1 | features/task_invocation/nonparameterized.feature |
cape-1.0.0 | features/task_invocation/nonparameterized.feature |