Class: PerconaMigrator::Configuration
- Inherits:
-
Object
- Object
- PerconaMigrator::Configuration
- Defined in:
- lib/percona_migrator/configuration.rb
Instance Attribute Summary collapse
-
#global_percona_args ⇒ Object
Returns the value of attribute global_percona_args.
-
#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 |
# File 'lib/percona_migrator/configuration.rb', line 5 def initialize @tmp_path = '.'.freeze @error_log_filename = 'percona_migrator_error.log'.freeze @global_percona_args = nil end |
Instance Attribute Details
#global_percona_args ⇒ Object
Returns the value of attribute global_percona_args.
3 4 5 |
# File 'lib/percona_migrator/configuration.rb', line 3 def global_percona_args @global_percona_args end |
#tmp_path ⇒ Object
Returns the value of attribute tmp_path.
3 4 5 |
# File 'lib/percona_migrator/configuration.rb', line 3 def tmp_path @tmp_path end |
Instance Method Details
#error_log_path ⇒ Object
11 12 13 |
# File 'lib/percona_migrator/configuration.rb', line 11 def error_log_path File.join(tmp_path, error_log_filename) end |