Class: Mbeditor::Configuration
- Inherits:
-
Object
- Object
- Mbeditor::Configuration
- Defined in:
- lib/mbeditor/configuration.rb
Instance Attribute Summary collapse
-
#allowed_environments ⇒ Object
Returns the value of attribute allowed_environments.
-
#authenticate_with ⇒ Object
Returns the value of attribute authenticate_with.
-
#excluded_paths ⇒ Object
Returns the value of attribute excluded_paths.
-
#redmine_api_key ⇒ Object
Returns the value of attribute redmine_api_key.
-
#redmine_enabled ⇒ Object
Returns the value of attribute redmine_enabled.
-
#redmine_ticket_source ⇒ Object
Returns the value of attribute redmine_ticket_source.
-
#redmine_url ⇒ Object
Returns the value of attribute redmine_url.
-
#rubocop_command ⇒ Object
Returns the value of attribute rubocop_command.
-
#test_command ⇒ Object
Returns the value of attribute test_command.
-
#test_framework ⇒ Object
Returns the value of attribute test_framework.
-
#test_timeout ⇒ Object
Returns the value of attribute test_timeout.
-
#workspace_root ⇒ Object
Returns the value of attribute workspace_root.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/mbeditor/configuration.rb', line 8 def initialize @allowed_environments = [:development] @workspace_root = nil @excluded_paths = %w[.git tmp log node_modules .bundle coverage vendor/bundle] @rubocop_command = "rubocop" @redmine_enabled = false @redmine_url = nil @redmine_api_key = nil @redmine_ticket_source = :commit # :commit (scan commit messages) or :branch (leading digits of branch name) @test_framework = nil # :minitest or :rspec — auto-detected when nil @test_command = nil # e.g. "bundle exec ruby -Itest" or "bundle exec rspec" @test_timeout = 60 # seconds end |
Instance Attribute Details
#allowed_environments ⇒ Object
Returns the value of attribute allowed_environments.
3 4 5 |
# File 'lib/mbeditor/configuration.rb', line 3 def allowed_environments @allowed_environments end |
#authenticate_with ⇒ Object
Returns the value of attribute authenticate_with.
3 4 5 |
# File 'lib/mbeditor/configuration.rb', line 3 def authenticate_with @authenticate_with end |
#excluded_paths ⇒ Object
Returns the value of attribute excluded_paths.
3 4 5 |
# File 'lib/mbeditor/configuration.rb', line 3 def excluded_paths @excluded_paths end |
#redmine_api_key ⇒ Object
Returns the value of attribute redmine_api_key.
3 4 5 |
# File 'lib/mbeditor/configuration.rb', line 3 def redmine_api_key @redmine_api_key end |
#redmine_enabled ⇒ Object
Returns the value of attribute redmine_enabled.
3 4 5 |
# File 'lib/mbeditor/configuration.rb', line 3 def redmine_enabled @redmine_enabled end |
#redmine_ticket_source ⇒ Object
Returns the value of attribute redmine_ticket_source.
3 4 5 |
# File 'lib/mbeditor/configuration.rb', line 3 def redmine_ticket_source @redmine_ticket_source end |
#redmine_url ⇒ Object
Returns the value of attribute redmine_url.
3 4 5 |
# File 'lib/mbeditor/configuration.rb', line 3 def redmine_url @redmine_url end |
#rubocop_command ⇒ Object
Returns the value of attribute rubocop_command.
3 4 5 |
# File 'lib/mbeditor/configuration.rb', line 3 def rubocop_command @rubocop_command end |
#test_command ⇒ Object
Returns the value of attribute test_command.
3 4 5 |
# File 'lib/mbeditor/configuration.rb', line 3 def test_command @test_command end |
#test_framework ⇒ Object
Returns the value of attribute test_framework.
3 4 5 |
# File 'lib/mbeditor/configuration.rb', line 3 def test_framework @test_framework end |
#test_timeout ⇒ Object
Returns the value of attribute test_timeout.
3 4 5 |
# File 'lib/mbeditor/configuration.rb', line 3 def test_timeout @test_timeout end |
#workspace_root ⇒ Object
Returns the value of attribute workspace_root.
3 4 5 |
# File 'lib/mbeditor/configuration.rb', line 3 def workspace_root @workspace_root end |