Module: CapistranoMulticonfigParallel::CapistranoHelper
- Included in:
- ApplicationHelper
- Defined in:
- lib/capistrano_multiconfig_parallel/helpers/capistrano_helper.rb
Overview
helper methods used for capistrano actions
Class Method Summary collapse
- .env_key_format(key) ⇒ Object
- .env_prefix ⇒ Object
- .filtered_env_keys_format(keys) ⇒ Object
- .trace_flag ⇒ Object
Class Method Details
.env_key_format(key) ⇒ Object
14 15 16 |
# File 'lib/capistrano_multiconfig_parallel/helpers/capistrano_helper.rb', line 14 def env_key_format(key) capistrano_version_2? ? key.downcase : key end |
.env_prefix ⇒ Object
10 11 12 |
# File 'lib/capistrano_multiconfig_parallel/helpers/capistrano_helper.rb', line 10 def env_prefix capistrano_version_2? ? '-S' : '' end |
.filtered_env_keys_format(keys) ⇒ Object
6 7 8 |
# File 'lib/capistrano_multiconfig_parallel/helpers/capistrano_helper.rb', line 6 def filtered_env_keys_format(keys) capistrano_version_2? ? keys.map(&:downcase) : keys end |
.trace_flag ⇒ Object
18 19 20 |
# File 'lib/capistrano_multiconfig_parallel/helpers/capistrano_helper.rb', line 18 def trace_flag capistrano_version_2? ? '--verbose' : '--trace' end |