Class: DatoDump::Cli

Inherits:
Thor
  • Object
show all
Defined in:
lib/dato_dump/cli.rb

Instance Method Summary collapse

Instance Method Details

#produceObject



15
16
17
18
19
20
21
22
23
# File 'lib/dato_dump/cli.rb', line 15

def produce
  configuration = Configuration.new(options[: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