Class: PerconaMigrations::Runners::Base
- Inherits:
-
Object
- Object
- PerconaMigrations::Runners::Base
- Defined in:
- lib/percona_migrations/runners/base.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(table_name, commands, options: {}) ⇒ Base
constructor
A new instance of Base.
- #log(msg) ⇒ Object
- #logger ⇒ Object
- #run ⇒ Object
Constructor Details
#initialize(table_name, commands, options: {}) ⇒ Base
Returns a new instance of Base.
8 9 10 11 12 |
# File 'lib/percona_migrations/runners/base.rb', line 8 def initialize(table_name, commands, options: {}) @table_name = table_name @commands = commands @options = end |
Class Method Details
.available? ⇒ Boolean
4 5 6 |
# File 'lib/percona_migrations/runners/base.rb', line 4 def self.available? true end |
Instance Method Details
#log(msg) ⇒ Object
18 19 20 |
# File 'lib/percona_migrations/runners/base.rb', line 18 def log(msg) logger.info(msg) if logger end |
#logger ⇒ Object
22 23 24 |
# File 'lib/percona_migrations/runners/base.rb', line 22 def logger PerconaMigrations.logger end |
#run ⇒ Object
14 15 16 |
# File 'lib/percona_migrations/runners/base.rb', line 14 def run raise NotImplementerError end |