Skip to content

Commit

Permalink
Using .rake extension instead of .cap
Browse files Browse the repository at this point in the history
In tests and default templates
  • Loading branch information
kirs committed Jan 23, 2014
1 parent 1f86d32 commit 7e41233
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions features/step_definitions/setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
end

Given(/^a custom task to generate a file$/) do
TestApp.copy_task_to_test_app('spec/support/tasks/database.cap')
TestApp.copy_task_to_test_app('spec/support/tasks/database.rake')
end

Given(/^the configuration is in a custom location$/) do
Expand All @@ -29,10 +29,10 @@

Given(/^a custom task that will simulate a failure$/) do
safely_remove_file(TestApp.shared_path.join('failed'))
TestApp.copy_task_to_test_app('spec/support/tasks/fail.cap')
TestApp.copy_task_to_test_app('spec/support/tasks/fail.rake')
end

Given(/^a custom task to run in the event of a failure$/) do
safely_remove_file(TestApp.shared_path.join('failed'))
TestApp.copy_task_to_test_app('spec/support/tasks/failed.cap')
TestApp.copy_task_to_test_app('spec/support/tasks/failed.rake')
end
2 changes: 1 addition & 1 deletion lib/capistrano/templates/Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ require 'capistrano/deploy'
# require 'capistrano/rails/migrations'

# Loads custom tasks from `lib/capistrano/tasks' if you have any defined.
Dir.glob('lib/capistrano/tasks/*.cap').each { |r| import r }
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 7e41233

Please sign in to comment.