Class: DataMigrate::StatusService
- Inherits:
-
Object
- Object
- DataMigrate::StatusService
- Defined in:
- lib/data_migrate/status_service.rb
Class Method Summary collapse
Instance Method Summary collapse
- #dump(stream) ⇒ Object
-
#initialize(connection) ⇒ StatusService
constructor
A new instance of StatusService.
- #root_folder ⇒ Object
Constructor Details
#initialize(connection) ⇒ StatusService
Returns a new instance of StatusService.
12 13 14 |
# File 'lib/data_migrate/status_service.rb', line 12 def initialize(connection) @connection = connection end |
Class Method Details
.dump(connection = ActiveRecord::Base.connection, stream = $stdout) ⇒ Object
6 7 8 9 |
# File 'lib/data_migrate/status_service.rb', line 6 def dump(connection = ActiveRecord::Base.connection, stream = $stdout) new(connection).dump(stream) stream end |
Instance Method Details
#dump(stream) ⇒ Object
20 21 22 |
# File 'lib/data_migrate/status_service.rb', line 20 def dump(stream) output(stream) end |
#root_folder ⇒ Object
16 17 18 |
# File 'lib/data_migrate/status_service.rb', line 16 def root_folder Rails.root end |