Class: Safeconsole::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/safeconsole/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_unsafeObject

Returns the value of attribute allow_unsafe.



3
4
5
# File 'lib/safeconsole/configuration.rb', line 3

def allow_unsafe
  @allow_unsafe
end

#app_nameObject

Returns the value of attribute app_name.



3
4
5
# File 'lib/safeconsole/configuration.rb', line 3

def app_name
  @app_name
end

#command_timeoutObject

Returns the value of attribute command_timeout.



3
4
5
# File 'lib/safeconsole/configuration.rb', line 3

def command_timeout
  @command_timeout
end

#current_envObject

Returns the value of attribute current_env.



3
4
5
# File 'lib/safeconsole/configuration.rb', line 3

def current_env
  @current_env
end

#environmentsObject

Returns the value of attribute environments.



3
4
5
# File 'lib/safeconsole/configuration.rb', line 3

def environments
  @environments
end

#session_timeoutObject

Returns the value of attribute session_timeout.



3
4
5
# File 'lib/safeconsole/configuration.rb', line 3

def session_timeout
  @session_timeout
end