Sha256: 74fbf5839c53753b364a65f76c6020d4838ce001d291a47dcbd418377c010331
Contents?: true
Size: 560 Bytes
Versions: 2
Compression:
Stored size: 560 Bytes
Contents
require_relative "exporters/datocms" module Commercelayer module CLI module Exporters def export_data!(destination) commercelayer_client.authorize! case destination when "datocms" if yes? "Warning: this will erase your DatoCMS site. Continue?", :yellow say "Exporting data to DatoCMS...", :blue DatoCMS.new.export! else say "Nothing to do here. Bye!", :blue end else say "coming soon...", :yellow end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
commercelayer-cli-0.2.1 | lib/commercelayer/cli/exporters.rb |
commercelayer-cli-0.2.0 | lib/commercelayer/cli/exporters.rb |