Module: Gaudi::Configuration::EnvironmentOptions

Included in:
SystemConfiguration
Defined in:
lib/gaudi/helpers/configuration.rb

Overview

Encapsulates the environment variables used to adjust the builder's configuration

Is mixed in with SystemConfiguration

Instance Method Summary collapse

Instance Method Details

#componentObject

Defines the component name to work with, raises GaudiConfigurationError if not defined


69
70
71
# File 'lib/gaudi/helpers/configuration.rb', line 69

def component
  mandatory('COMPONENT')
end

#deploymentObject

Defines the deployment name to work with, raises GaudiConfigurationError if not defined


81
82
83
# File 'lib/gaudi/helpers/configuration.rb', line 81

def deployment
  mandatory('DEPLOYMENT')
end

#userObject

Returns the user name to work with, raises no exception whatsoever


77
78
79
# File 'lib/gaudi/helpers/configuration.rb', line 77

def user
  return ENV['USER']
end

#user!Object

Defines the user name to work with, raises GaudiConfigurationError if not defined


73
74
75
# File 'lib/gaudi/helpers/configuration.rb', line 73

def user!
  mandatory('USER')
end