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) ⇒ Base
constructor
A new instance of Base.
- #log(msg) ⇒ Object
- #logger ⇒ Object
- #run ⇒ Object
Constructor Details
#initialize(table_name, commands) ⇒ Base
Returns a new instance of Base.
8 9 10 11 |
# File 'lib/percona_migrations/runners/base.rb', line 8 def initialize(table_name, commands) @table_name = table_name @commands = commands 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
17 18 19 |
# File 'lib/percona_migrations/runners/base.rb', line 17 def log(msg) logger.info(msg) if logger end |
#logger ⇒ Object
21 22 23 |
# File 'lib/percona_migrations/runners/base.rb', line 21 def logger PerconaMigrations.logger end |
#run ⇒ Object
13 14 15 |
# File 'lib/percona_migrations/runners/base.rb', line 13 def run raise NotImplementerError end |