class ECSHelper::CommonHelper

Attributes

branch[RW]
env[RW]
helper[RW]
version[RW]

Public Class Methods

new(helper) click to toggle source
# File lib/ecs_helper/common_helper.rb, line 11
def initialize(helper)
  @helper = helper
end

Public Instance Methods

application() click to toggle source
# File lib/ecs_helper/common_helper.rb, line 31
def application
  ENV["APPLICATION"]
end
environment() click to toggle source
# File lib/ecs_helper/common_helper.rb, line 23
def environment
  @env ||= helper.options[:environment] || ENV["ENVIRONMENT"] || BRANCH_TO_ENV_MAPPING[branch.to_sym] || raise(StandardError.new("Environment not detected"))
end
project() click to toggle source
# File lib/ecs_helper/common_helper.rb, line 27
def project
  ENV["PROJECT"]
end