mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Using .rake
extension instead of .cap
In tests and default templates
This commit is contained in:
parent
1f86d32fd4
commit
7e41233d76
5 changed files with 4 additions and 4 deletions
|
@ -20,7 +20,7 @@ Given(/^the file does not exist$/) do
|
|||
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
|
||||
|
@ -29,10 +29,10 @@ end
|
|||
|
||||
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
|
||||
|
|
|
@ -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 }
|
||||
|
|
Loading…
Reference in a new issue