Class: Safeconsole::Configuration
- Inherits:
-
Object
- Object
- Safeconsole::Configuration
- Defined in:
- lib/safeconsole/configuration.rb
Instance Attribute Summary collapse
-
#allow_unsafe ⇒ Object
Returns the value of attribute allow_unsafe.
-
#app_name ⇒ Object
Returns the value of attribute app_name.
-
#command_timeout ⇒ Object
Returns the value of attribute command_timeout.
-
#current_env ⇒ Object
Returns the value of attribute current_env.
-
#environments ⇒ Object
Returns the value of attribute environments.
-
#session_timeout ⇒ Object
Returns the value of attribute session_timeout.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
10 11 12 13 14 15 |
# File 'lib/safeconsole/configuration.rb', line 10 def initialize @environments = %w[] @app_name = Utils.get_app_name @allow_unsafe = true @current_env = Rails.env end |
Instance Attribute Details
#allow_unsafe ⇒ Object
Returns the value of attribute allow_unsafe.
3 4 5 |
# File 'lib/safeconsole/configuration.rb', line 3 def allow_unsafe @allow_unsafe end |
#app_name ⇒ Object
Returns the value of attribute app_name.
3 4 5 |
# File 'lib/safeconsole/configuration.rb', line 3 def app_name @app_name end |
#command_timeout ⇒ Object
Returns the value of attribute command_timeout.
3 4 5 |
# File 'lib/safeconsole/configuration.rb', line 3 def command_timeout @command_timeout end |
#current_env ⇒ Object
Returns the value of attribute current_env.
3 4 5 |
# File 'lib/safeconsole/configuration.rb', line 3 def current_env @current_env end |
#environments ⇒ Object
Returns the value of attribute environments.
3 4 5 |
# File 'lib/safeconsole/configuration.rb', line 3 def environments @environments end |
#session_timeout ⇒ Object
Returns the value of attribute session_timeout.
3 4 5 |
# File 'lib/safeconsole/configuration.rb', line 3 def session_timeout @session_timeout end |