require 'eucalypt/migration/namespaces/migration-blank/generators/blank' require 'eucalypt/app' require 'eucalypt/errors' require 'eucalypt/helpers' module Eucalypt class Migration < Thor include Eucalypt::Helpers using Colorize desc "blank [NAME]", "Creates a blank migration".colorize(:grey) def blank(name) directory = File.expand_path('.') if Eucalypt.app? directory migration = Eucalypt::Generators::Blank.new migration.destination_root = directory migration.generate(name: name) else Eucalypt::Error.wrong_directory end end end end