Sha256: 459cb64657a78e4ddf1a21d85e9ef00ca491d4a9d994ef3bc962e49362867204
Contents?: true
Size: 999 Bytes
Versions: 3
Compression:
Stored size: 999 Bytes
Contents
Feature: The #each_rake_task DSL method with an argument of a defined task In order to use the metadata of Rake tasks in my Capistrano recipes, As a developer using Cape, I want to use the Cape DSL. Scenario: enumerate only the matching Rake task Given a full-featured Rakefile And a file named "Capfile" with: """ require 'cape' Cape do each_rake_task 'with_period' do |t| $stdout.puts '', "Name: #{t[:name].inspect}" if t[:parameters] $stdout.puts "Parameters: #{t[:parameters].inspect}" end if t[:description] $stdout.puts "Description: #{t[:description].inspect}" end end end """ When I run `cap -T` Then the output should contain: """ Name: "with_period" Description: "Ends with period." """ And the output should not contain: """ Name: "without_period" Description: "Ends without period" """
Version data entries
3 entries across 3 versions & 1 rubygems