Class: Dumpman::Fetcher
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Dumpman::Fetcher
- Defined in:
- lib/dumpman/fetcher.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.fetch(connection_name) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/dumpman/fetcher.rb', line 3 def self.fetch(connection_name) connection = Dumpman.connections.find do |connection| connection.name == connection_name end instance = self.new(attrs: connection.attrs) instance.fetch_remote_dump end |
Instance Method Details
#fetch_remote_dump ⇒ Object
12 13 14 15 |
# File 'lib/dumpman/fetcher.rb', line 12 def fetch_remote_dump fetcher = fetcher_class.new(attrs) fetcher.get_dump end |