9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# File 'lib/ya_queen_role_fontana/gotool_sandbox.rb', line 9
def implement_common_task
set :user, config['user']
set :scm, :git
set :scm_verbose, true
set :default_branch, "master"
set :branch do
tag = Capistrano::CLI.ui.ask "branch or tag : [#{default_branch}] "
tag = default_branch if tag.empty?
tag
end
set :deploy_via, :copy
set :deploy_to, fetch(:override_deploy_to, config['deploy_to'])
set :deploy_env, "production"
set :rails_env, "production"
set :workspaces_scm , config["workspaces"]["scm"]
set :workspaces_runtime, config["workspaces"]["runtime"]
set :workspaces, config["workspaces"]
if config.has_key?('newrelic')
set :newrelic_license_key, config['newrelic']['license_key'] unless exists?(:newrelic_license_key)
set :newrelic_agent_enabled, config['newrelic']['agent_enabled'] unless exists?(:newrelic_agent_enabled)
set :newrelic_app_name, config['newrelic']['app_name'] unless exists?(:newrelic_app_name)
end
super
end
|