Class: PerconaMigrator::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_argsObject

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_pathObject

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_pathObject



11
12
13
# File 'lib/percona_migrator/configuration.rb', line 11

def error_log_path
  File.join(tmp_path, error_log_filename)
end