Sha256: 4496a6046eaedf7c5b4dc5eb0952a5c718a8736fdb188c647017abbc5086a92f
Contents?: true
Size: 1.05 KB
Versions: 14
Compression:
Stored size: 1.05 KB
Contents
# base module that has the statis methods that this gem is using module CapistranoMulticonfigParallel ENV_KEY_JOB_ID = 'multi_cap_job_id' GITFLOW_TAG_STAGING_TASK = 'gitflow:tag_staging' GITFLOW_CALCULATE_TAG_TASK = 'gitflow:calculate_tag' GITFLOW_VERIFY_UPTODATE_TASK = 'gitflow:verify_up_to_date' class << self attr_accessor :logger, :original_args include CapistranoMulticonfigParallel::Configuration def enable_logging enable_file_logging set_celluloid_exception_handling end private def set_celluloid_exception_handling Celluloid.logger = logger Celluloid.task_class = Celluloid::TaskThread Celluloid.exception_handler do |ex| unless ex.is_a?(Interrupt) puts format_error(ex) log_error(ex) end end end def enable_file_logging if configuration.multi_debug.to_s.downcase == 'true' enable_main_log_file self.logger = ::Logger.new(main_log_file) else self.logger ||= ::Logger.new(DevNull.new) end end end end
Version data entries
14 entries across 14 versions & 1 rubygems