Class: DatoDump::Cli
- Inherits:
-
Thor
- Object
- Thor
- DatoDump::Cli
- Defined in:
- lib/dato_dump/cli.rb
Instance Method Summary collapse
Instance Method Details
#produce ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/dato_dump/cli.rb', line 15 def produce configuration = Configuration.new([:config]) client = Client.new(configuration) repo = EntitiesRepo.new(client.space, client.records) dumper = Dumper.new(repo, configuration) dumper.dump # rescue Exception => error # raise Thor::Error, error.message end |