Sha256: 6dbbe4cdb41bdb2241cac5c9e94983ea72b87a2d687866b578e0b676f3cb1fdf

Contents?: true

Size: 264 Bytes

Versions: 2

Compression:

Stored size: 264 Bytes

Contents

require_relative 'migrator'
require 'yaml'

module Command
  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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
contentful-importer-0.0.2 lib/cli.rb
contentful-importer-0.0.1 lib/cli.rb