Sha256: 9e4fbd76f7eb018b695b8084c2960d1f9e8be8f8ca2594d229fe12891f2a5a15

Contents?: true

Size: 412 Bytes

Versions: 11

Compression:

Stored size: 412 Bytes

Contents

module EnvironmentHelpers
  def environment_named(name)
    client.environments.first(name: name)
  end

  def known_environments
    begin
      recall_fact(:known_environments)
    rescue
      memorize_fact(:known_environments, [])
    end
  end

  def first_environment
    known_environments.first.reload
  end

  def last_environment
    known_environments.last.reload
  end
end

World(EnvironmentHelpers)

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
ey-core-3.6.0.autoscaling1 features/support/environment_helpers.rb
ey-core-3.6.4 features/support/environment_helpers.rb
ey-core-3.6.3 features/support/environment_helpers.rb
ey-core-3.6.1 features/support/environment_helpers.rb
groove-ey-core-3.6.3 features/support/environment_helpers.rb
groove-ey-core-3.6.2 features/support/environment_helpers.rb
groove-ey-core-3.6.1 features/support/environment_helpers.rb
ey-core-3.5.0 features/support/environment_helpers.rb
ey-core-3.4.4 features/support/environment_helpers.rb
ey-core-3.4.2 features/support/environment_helpers.rb
ey-core-3.4.1 features/support/environment_helpers.rb