Module: Greenpeace

Defined in:
lib/greenpeace.rb,
lib/greenpeace/railtie.rb,
lib/greenpeace/version.rb,
lib/greenpeace/environment.rb,
lib/greenpeace/configuration/doc.rb,
lib/greenpeace/configuration/key.rb,
lib/greenpeace/configuration/type.rb,
lib/greenpeace/configuration/config.rb,
lib/greenpeace/configuration/option.rb,
lib/greenpeace/configuration/default.rb,
lib/greenpeace/configuration/requirement.rb

Overview

:nodoc:

Defined Under Namespace

Modules: Configuration Classes: Environment, Railtie

Constant Summary collapse

VERSION =
'0.1.1'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.envObject (readonly)

Returns the value of attribute env.



64
65
66
# File 'lib/greenpeace.rb', line 64

def env
  @env
end

Class Method Details

.configure(environment = 'production') {|configuration| ... } ⇒ Object

Yields:

  • (configuration)


66
67
68
69
70
# File 'lib/greenpeace.rb', line 66

def configure(environment = 'production')
  configuration = Greenpeace::Configuration::Config.new(environment)
  yield configuration
  @env = Greenpeace::Environment.new(configuration)
end