Sha256: 23031e151de8410c49e06573cfdf065bf74344305b800483dc251aa25092657b

Contents?: true

Size: 478 Bytes

Versions: 3

Compression:

Stored size: 478 Bytes

Contents

module CapistranoMulticonfigParallel
  # helper methods used for capistrano actions
  module CapistranoHelper
  module_function

    def filtered_env_keys_format(keys)
      capistrano_version_2? ? keys.map(&:downcase) : keys
    end

    def env_prefix
      capistrano_version_2? ? '-S' : ''
    end

    def env_key_format(key)
      capistrano_version_2? ? key.downcase : key
    end

    def trace_flag
      capistrano_version_2? ? '--debug' : '--trace'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
capistrano_multiconfig_parallel-1.0.2 lib/capistrano_multiconfig_parallel/helpers/capistrano_helper.rb
capistrano_multiconfig_parallel-1.0.1 lib/capistrano_multiconfig_parallel/helpers/capistrano_helper.rb
capistrano_multiconfig_parallel-1.0.0 lib/capistrano_multiconfig_parallel/helpers/capistrano_helper.rb