lib/apimaster/generators/controller_generator.rb in apimaster-0.0.4 vs lib/apimaster/generators/controller_generator.rb in apimaster-0.0.5

- old
+ new

@@ -3,9 +3,10 @@ class ControllerGenerator < Create attr_reader :app_name, :module_name, :name def initialize(runtime_args, runtime_options = {}) super + raise 'Unknown app directory.' unless File.exists?('./Gemfile') @app_name = File.basename(File.expand_path('./')) @module_name = camelize(app_name) @name = args[0] raise 'Undefined app name.' unless @app_name end