Sha256: 91b3cfa169f236ecabe8a66d46a059eb8ebcdc9fd339a3f509aa1ef43b003440

Contents?: true

Size: 295 Bytes

Versions: 2

Compression:

Stored size: 295 Bytes

Contents

require_relative 'migrator'
require 'yaml'

module Contentful
	module Importer
	  class CLI < Escort::ActionCommand::Base

	    def execute
	      setting_file = YAML.load_file(global_options[:file])
	      Migrator.new(setting_file).run(command_name, command_options)
	    end

	  end
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
contentful-importer-0.1.1 lib/contentful/importer/cli.rb
contentful-importer-0.1.0 lib/contentful/importer/cli.rb