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

.review_app?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/heroku/stage.rb', line 16

def review_app?
  !ENV['HEROKU_PARENT_APP_NAME'].nil?
end

.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