Module: Capistrano::DSL::FayePaths

Defined in:
lib/capistrano/dsl/faye_paths.rb

Instance Method Summary collapse

Instance Method Details

#faye_default_config_fileObject



13
14
15
# File 'lib/capistrano/dsl/faye_paths.rb', line 13

def faye_default_config_file
  shared_path.join('config/faye.ru')
end

#faye_default_pid_fileObject



17
18
19
# File 'lib/capistrano/dsl/faye_paths.rb', line 17

def faye_default_pid_file
  shared_path.join('tmp/pids/faye.pid')
end

#faye_default_requireObject



21
22
23
# File 'lib/capistrano/dsl/faye_paths.rb', line 21

def faye_default_require
  current_path.join('config/environment')
end

#faye_initd_fileObject



9
10
11
# File 'lib/capistrano/dsl/faye_paths.rb', line 9

def faye_initd_file
  "/etc/init.d/#{faye_service}"
end

#faye_log_dirObject



25
26
27
# File 'lib/capistrano/dsl/faye_paths.rb', line 25

def faye_log_dir
  shared_path.join('log')
end

#faye_log_fileObject



29
30
31
# File 'lib/capistrano/dsl/faye_paths.rb', line 29

def faye_log_file
  sidekiq_log_dir.join(fetch(:faye_log))
end

#faye_serviceObject



5
6
7
# File 'lib/capistrano/dsl/faye_paths.rb', line 5

def faye_service
  "faye_#{fetch(:app_config_name)}"
end