Created
August 20, 2016 12:18
-
-
Save will-in-wi/527327e31af30b3eae2068e2965be05b to your computer and use it in GitHub Desktop.
Test case for https://github.com/capistrano/capistrano/issues/1748
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "capistrano/setup" | |
require "capistrano/deploy" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lock '3.6' | |
set :application, 'my_app_name' | |
set :repo_url, 'git@example.com:me/my_repo.git' | |
set :latest_release_directory, '/tmp' | |
namespace :test_case do | |
desc 'A test for issue #1748' | |
task :testing do | |
on roles(:app) do |host| | |
within fetch(:latest_release_directory) do | |
puts fetch(:latest_release_directory) | |
execute %Q( pwd ) | |
end | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
gem 'capistrano' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server 'localhost', roles: %w{app db web} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment