Class: RailsOpsDashboard::Configuration
- Inherits:
-
Object
- Object
- RailsOpsDashboard::Configuration
- Defined in:
- lib/rails_ops_dashboard/configuration.rb
Instance Attribute Summary collapse
-
#blocked_environments ⇒ Object
Returns the value of attribute blocked_environments.
-
#password ⇒ Object
Returns the value of attribute password.
-
#plugins ⇒ Object
readonly
Returns the value of attribute plugins.
-
#rake_tasks_path ⇒ Object
Returns the value of attribute rake_tasks_path.
-
#seeds_base_class ⇒ Object
Returns the value of attribute seeds_base_class.
-
#seeds_executor ⇒ Object
Returns the value of attribute seeds_executor.
-
#seeds_path ⇒ Object
Returns the value of attribute seeds_path.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #plugin(name, **options) ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/rails_ops_dashboard/configuration.rb', line 11 def initialize @username = 'admin' @password = 'password' @blocked_environments = %w[production] @seeds_path = 'app/services/database_update' @seeds_base_class = 'DatabaseUpdate' @seeds_executor = ->(klass) { klass.new.call } @rake_tasks_path = 'lib/tasks' @plugins = {} end |
Instance Attribute Details
#blocked_environments ⇒ Object
Returns the value of attribute blocked_environments.
5 6 7 |
# File 'lib/rails_ops_dashboard/configuration.rb', line 5 def blocked_environments @blocked_environments end |
#password ⇒ Object
Returns the value of attribute password.
5 6 7 |
# File 'lib/rails_ops_dashboard/configuration.rb', line 5 def password @password end |
#plugins ⇒ Object (readonly)
Returns the value of attribute plugins.
9 10 11 |
# File 'lib/rails_ops_dashboard/configuration.rb', line 9 def plugins @plugins end |
#rake_tasks_path ⇒ Object
Returns the value of attribute rake_tasks_path.
5 6 7 |
# File 'lib/rails_ops_dashboard/configuration.rb', line 5 def rake_tasks_path @rake_tasks_path end |
#seeds_base_class ⇒ Object
Returns the value of attribute seeds_base_class.
5 6 7 |
# File 'lib/rails_ops_dashboard/configuration.rb', line 5 def seeds_base_class @seeds_base_class end |
#seeds_executor ⇒ Object
Returns the value of attribute seeds_executor.
5 6 7 |
# File 'lib/rails_ops_dashboard/configuration.rb', line 5 def seeds_executor @seeds_executor end |
#seeds_path ⇒ Object
Returns the value of attribute seeds_path.
5 6 7 |
# File 'lib/rails_ops_dashboard/configuration.rb', line 5 def seeds_path @seeds_path end |
#username ⇒ Object
Returns the value of attribute username.
5 6 7 |
# File 'lib/rails_ops_dashboard/configuration.rb', line 5 def username @username end |
Instance Method Details
#plugin(name, **options) ⇒ Object
22 23 24 |
# File 'lib/rails_ops_dashboard/configuration.rb', line 22 def plugin(name, **) @plugins[name] = end |