Sha256: 7f13fd519dd00efbea9202dd72248104f619c5c518553ffcb2a6b0f72aa1c019
Contents?: true
Size: 725 Bytes
Versions: 3
Compression:
Stored size: 725 Bytes
Contents
require_relative 'command' module Contentful module Importer class ImportModel < Command self.command = 'import-content-model' self.summary = 'Import the content model.' def self.options [['--content_model_json=model.json', 'Content model to use for import. Uses the data directory by default.'] ].concat(super).concat(data_options).concat(space_options).sort end def self.import(settings, converter, importer) if settings['content_model_json'] converter.convert_to_import_form converter.create_content_type_json end importer.create_contentful_model(settings) end def run super self.class.import(@settings, @converter, @importer) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems