Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Using `.rake` extension instead of `.cap`

In tests and default templates
commit 7e41233d76fec0aca6877b62b876b7e2c9b85ec0 1 parent 1f86d32
@kirs kirs authored
View
6 features/step_definitions/setup.rb
@@ -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
@@ -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
View
2  lib/capistrano/templates/Capfile
@@ -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 }
View
0  spec/support/tasks/database.cap → spec/support/tasks/database.rake
File renamed without changes
View
0  spec/support/tasks/fail.cap → spec/support/tasks/fail.rake
File renamed without changes
View
0  spec/support/tasks/failed.cap → spec/support/tasks/failed.rake
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.