Module: Heroku

Defined in:
lib/heroku/stage.rb,
lib/heroku/stage/version.rb

Defined Under Namespace

Modules: Stage

Class Method Summary collapse

Class Method Details

.stageObject

Returns the current Heroku stage.

Heroku.stage # => "staging"
Heroku.stage.staging? # => true
Heroku.stage.production? # => false


12
13
14
# File 'lib/heroku/stage.rb', line 12

def stage
  @_stage ||= ActiveSupport::StringInquirer.new(heroku_pipeline_stage)
end