Class: DataMigrate::StatusService

Inherits:
Object
  • Object
show all
Defined in:
lib/data_migrate/status_service.rb

Class Method Summary collapse

Instance Method Summary collapse

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_folderObject



16
17
18
# File 'lib/data_migrate/status_service.rb', line 16

def root_folder
  Rails.root
end