Class: YaQueenRoleFontana::TitleAppSandbox
- Inherits:
-
YaQueen::Base
- Object
- YaQueen::Base
- YaQueenRoleFontana::TitleAppSandbox
- Defined in:
- lib/ya_queen_role_fontana/title_app_sandbox.rb
Instance Method Summary collapse
Instance Method Details
#implement_common_task ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/ya_queen_role_fontana/title_app_sandbox.rb', line 9 def implement_common_task set :user, config['user'] set :scm, :git if repo = config["repository"] set :repository, repo end set :scm_verbose, true set :deploy_via, :copy # Projectが生成するconfig/fontana.yml もコピーするので、copyが一番楽 ## :deploy_to は初期値として { "/u/apps/#{application}" } が入っているので、 ## -s deploy_to 指定時はオプションの値、省略時は deploy_config (yaml) の値、 ## という指定方法ができない。-s で指定する場合は -s override_deploy_to で指定することにする set :deploy_to , fetch(:override_deploy_to, config['deploy_to']) set :copy_dir , "/tmp/copy_dir" set :remote_copy_dir, "/tmp/remote_copy_dir" set :deploy_env, "production" set :rails_env, "production" super end |
#implement_each_task(host, options) ⇒ Object
29 30 31 32 33 34 35 36 |
# File 'lib/ya_queen_role_fontana/title_app_sandbox.rb', line 29 def implement_each_task(host, ) domain = fetch(:domain, host) role :web, domain role :app, domain role :db , domain, :primary => true role :gotool, domain super end |