Class: Departure::Configuration
- Inherits:
-
Object
- Object
- Departure::Configuration
- Defined in:
- lib/departure/configuration.rb
Instance Attribute Summary collapse
-
#enabled_by_default ⇒ Object
Returns the value of attribute enabled_by_default.
-
#global_percona_args ⇒ Object
Returns the value of attribute global_percona_args.
-
#redirect_stderr ⇒ Object
Returns the value of attribute redirect_stderr.
-
#tmp_path ⇒ Object
Returns the value of attribute tmp_path.
Instance Method Summary collapse
- #error_log_path ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 11 |
# File 'lib/departure/configuration.rb', line 5 def initialize @tmp_path = '.'.freeze @error_log_filename = 'departure_error.log'.freeze @global_percona_args = nil @enabled_by_default = true @redirect_stderr = true end |
Instance Attribute Details
#enabled_by_default ⇒ Object
Returns the value of attribute enabled_by_default.
3 4 5 |
# File 'lib/departure/configuration.rb', line 3 def enabled_by_default @enabled_by_default end |
#global_percona_args ⇒ Object
Returns the value of attribute global_percona_args.
3 4 5 |
# File 'lib/departure/configuration.rb', line 3 def global_percona_args @global_percona_args end |
#redirect_stderr ⇒ Object
Returns the value of attribute redirect_stderr.
3 4 5 |
# File 'lib/departure/configuration.rb', line 3 def redirect_stderr @redirect_stderr end |
#tmp_path ⇒ Object
Returns the value of attribute tmp_path.
3 4 5 |
# File 'lib/departure/configuration.rb', line 3 def tmp_path @tmp_path end |
Instance Method Details
#error_log_path ⇒ Object
13 14 15 |
# File 'lib/departure/configuration.rb', line 13 def error_log_path File.join(tmp_path, error_log_filename) end |