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
|
# File 'lib/ya_queen_role_fontana/apisrv.rb', line 20
def implement_common_task
set :user, config['user']
set :deploy_to, config['deploy_to']
set :gemfile_name, "ApiServer"
set :bundle_dir, "./vendor/bundle"
set :bundle_without, [:development, :test, :deploy]
set :scm, :none
set :repository, root_dir
set :workspaces, config["workspaces"]
set :workspaces_scm , config["workspaces"]["scm"]
set :workspaces_runtime, config["workspaces"]["runtime"]
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
set :mongoid_yml_template, "config/mongoid.yml"
super
end
|