Class: Plasma::Application::Configuration
- Inherits:
-
Object
- Object
- Plasma::Application::Configuration
- Defined in:
- lib/plasma/application.rb
Overview
Configuration class for PLASMA applications
Instance Attribute Summary collapse
-
#auth_host ⇒ Object
Returns the value of attribute auth_host.
-
#auth_port ⇒ Object
Returns the value of attribute auth_port.
-
#enable_log ⇒ Object
Returns the value of attribute enable_log.
-
#env_vars ⇒ Object
readonly
Returns the value of attribute env_vars.
-
#module_name ⇒ Object
Returns the value of attribute module_name.
-
#name ⇒ Object
Returns the value of attribute name.
-
#omniauth_provider_args ⇒ Object
Returns the value of attribute omniauth_provider_args.
-
#required_env_vars ⇒ Object
readonly
Returns the value of attribute required_env_vars.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #require_environment_variable(name) ⇒ Object
- #set_environment_variable(name, value) ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
172 173 174 175 176 177 178 179 180 181 182 |
# File 'lib/plasma/application.rb', line 172 def initialize @name = nil @version = nil @enable_log = true @module_name = nil @required_env_vars = [] @env_vars = {} @auth_port = 4567 @auth_host = "localhost" @omniauth_provider_args = {} end |
Instance Attribute Details
#auth_host ⇒ Object
Returns the value of attribute auth_host.
169 170 171 |
# File 'lib/plasma/application.rb', line 169 def auth_host @auth_host end |
#auth_port ⇒ Object
Returns the value of attribute auth_port.
169 170 171 |
# File 'lib/plasma/application.rb', line 169 def auth_port @auth_port end |
#enable_log ⇒ Object
Returns the value of attribute enable_log.
169 170 171 |
# File 'lib/plasma/application.rb', line 169 def enable_log @enable_log end |
#env_vars ⇒ Object (readonly)
Returns the value of attribute env_vars.
170 171 172 |
# File 'lib/plasma/application.rb', line 170 def env_vars @env_vars end |
#module_name ⇒ Object
Returns the value of attribute module_name.
169 170 171 |
# File 'lib/plasma/application.rb', line 169 def module_name @module_name end |
#name ⇒ Object
Returns the value of attribute name.
169 170 171 |
# File 'lib/plasma/application.rb', line 169 def name @name end |
#omniauth_provider_args ⇒ Object
Returns the value of attribute omniauth_provider_args.
169 170 171 |
# File 'lib/plasma/application.rb', line 169 def omniauth_provider_args @omniauth_provider_args end |
#required_env_vars ⇒ Object (readonly)
Returns the value of attribute required_env_vars.
170 171 172 |
# File 'lib/plasma/application.rb', line 170 def required_env_vars @required_env_vars end |
#version ⇒ Object
Returns the value of attribute version.
169 170 171 |
# File 'lib/plasma/application.rb', line 169 def version @version end |
Instance Method Details
#require_environment_variable(name) ⇒ Object
184 185 186 |
# File 'lib/plasma/application.rb', line 184 def require_environment_variable(name) @required_env_vars << name end |
#set_environment_variable(name, value) ⇒ Object
188 189 190 |
# File 'lib/plasma/application.rb', line 188 def set_environment_variable(name, value) @env_vars[name] = value end |