class YaQueenRoleFontana::ConfigsrvProduction
Public Instance Methods
implement_common_task()
click to toggle source
Calls superclass method
# File lib/ya_queen_role_fontana/configsrv_production.rb, line 8 def implement_common_task set :user, config['user'] ## :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']) # Configサーバ set :config_server_path, fetch(:config_server_path, config['path']) set :config_server_repository, fetch(:repository , config['repository']) set :config_server_branch, fetch(:config_server_branch, config['branch']) super end
implement_each_task(host, options)
click to toggle source
Calls superclass method
# File lib/ya_queen_role_fontana/configsrv_production.rb, line 23 def implement_each_task(host, options) role :web, host role :app, host role :configsrv, host super end