Module: CapistranoMulticonfigParallel::ApplicationHelper
- Includes:
- CoreHelper, InternalHelper, StagesHelper
- Included in:
- Application, CLI, CelluloidManager, CelluloidWorker, ChildProcess, Configuration, DependencyTracker, RakeWorker, StandardDeploy, TerminalTable, WebServer
- Defined in:
- lib/capistrano_multiconfig_parallel/helpers/application_helper.rb
Overview
class that holds the options that are configurable for this gem
Class Method Summary collapse
Methods included from StagesHelper
check_stage_path, checks_paths, fetch_stages, fetch_stages_paths, stages_paths
Methods included from CoreHelper
app_configuration, app_debug_enabled?, app_logger, ask_confirm, check_terminal_tty, debug_websocket?, execute_with_rescue, find_config_type, find_loaded_gem, find_worker_log, force_confirmation, format_error, log_error, log_to_file, rescue_error, rescue_interrupt, show_warning, websocket_config, websocket_server_config
Methods included from InternalHelper
config_file, custom_commands, default_internal_config, detect_root, enable_main_log_file, find_env_multi_cap_root, internal_config_directory, internal_config_file, log_directory, main_log_file, root, try_detect_capfile
Class Method Details
.parse_task_string(string) ⇒ Object
:nodoc:
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/capistrano_multiconfig_parallel/helpers/application_helper.rb', line 20 def parse_task_string(string) # :nodoc: /^([^\[]+)(?:\[(.*)\])$/ =~ string.to_s name = Regexp.last_match(1) remaining_args = Regexp.last_match(2) return string, [] unless name return name, [] if remaining_args.empty? args = [] loop do /((?:[^\\,]|\\.)*?)\s*(?:,\s*(.*))?$/ =~ remaining_args remaining_args = Regexp.last_match(2) args << Regexp.last_match(1).gsub(/\\(.)/, '\1') break if remaining_args.blank? end [name, args] end |
.strip_characters_from_string(value) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/capistrano_multiconfig_parallel/helpers/application_helper.rb', line 13 def strip_characters_from_string(value) return unless value.present? value = value.delete("\r\n").delete("\n") value = value.gsub(/\s+/, ' ').strip if value.present? value end |