Sha256: b7e528ca3de1b14a413750825c9a176a99833f784609b3c79b49013609f0d724
Contents?: true
Size: 618 Bytes
Versions: 22
Compression:
Stored size: 618 Bytes
Contents
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
Version data entries
22 entries across 22 versions & 1 rubygems