class YaQueenRoleFontana::GotoolProduction

Public Instance Methods

implement_common_task() click to toggle source
Calls superclass method
# File lib/ya_queen_role_fontana/gotool_production.rb, line 16
def implement_common_task
  set :user,       config['user']
  set :deploy_to,  config['deploy_to']
  set :gemfile_name, "GOTool"
  set :bundle_dir, "./vendor/bundle"
  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

  # mongoid.yml のテンプレート
  # .erb以外が設定されている場合は、config/mongoid.ymlとしてこのファイル(の中身)をアップロードします。
  set :mongoid_yml_template, "config/mongoid.yml"

  super
end
implement_each_task(host, options) click to toggle source
Calls superclass method
# File lib/ya_queen_role_fontana/gotool_production.rb, line 8
def implement_each_task(host, options)
  role :web, host
  role :app, host, :delayed_job => false
  role :db, host, :primary => true if config['servers'][host]['primary_db']
  role :gotool, host
  super
end