bin/eman in eman-0.0.2 vs bin/eman in eman-0.0.3
- old
+ new
@@ -1,27 +1,25 @@
-#!/usr/bin/env ruby
-
require "thor"
require "eman"
module Eman
class CLI < Thor
desc "controller", "name a controller"
def controller
- generator = Eman::NameGenerator.new('Controller')
+ generator = Eman::Generator.new('Controller')
generator.run
end
desc "service", "name a service"
def service
- generator = Eman::NameGenerator.new('Service')
+ generator = Eman::Generator.new('Service')
generator.run
end
desc "model", "name a model"
def model
- generator = Eman::NameGenerator.new('Model')
+ generator = Eman::Generator.new('Model')
generator.run
end
end
end