class Shaf::Generator::Migration::Generator

Public Instance Methods

call() click to toggle source
# File lib/shaf/generator/migration.rb, line 13
def call
  generator = 
    if Factory.lookup(*args)
      Factory.create(*args, **options)
    else
      Empty.new(*args, **options)
    end
  (target, content) = generator.call
  write_output(target, content)
rescue StandardError => e
  raise Command::ArgumentError, e.message
end