Class: Capistrano::Rpush
- Inherits:
-
Plugin
- Object
- Plugin
- Capistrano::Rpush
- Includes:
- Capistrano::RpushPlugin::Common
- Defined in:
- lib/capistrano/rpush.rb
Instance Method Summary collapse
Methods included from Capistrano::RpushPlugin::Common
#rpush_switch_user, #rpush_user
Instance Method Details
#define_tasks ⇒ Object
7 8 9 |
# File 'lib/capistrano/rpush.rb', line 7 def define_tasks eval_rakefile File.('../tasks/rpush.rake', __FILE__) end |
#register_hooks ⇒ Object
23 24 25 26 |
# File 'lib/capistrano/rpush.rb', line 23 def register_hooks after 'deploy:check', 'rpush:check' after 'deploy:finished', 'rpush:restart' end |
#set_defaults ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/capistrano/rpush.rb', line 11 def set_defaults set_if_empty :rpush_default_hooks, true set_if_empty :rpush_role, :app set_if_empty :rpush_env, -> { fetch(:rack_env, fetch(:rails_env, fetch(:stage))) } set_if_empty :rpush_conf, -> { File.join(current_path, 'config', 'initializers', 'rpush.rb') } set_if_empty :rpush_log, -> { File.join(shared_path, 'log', 'rpush.log') } set_if_empty :rpush_pid, -> { File.join(shared_path, 'tmp', 'pids', 'rpush.pid') } append :rbenv_map_bins, 'rpush' append :bundle_bins, 'rpush' end |