Skip to content

Commit

Permalink
Stash ongoing prototype hacking
Browse files Browse the repository at this point in the history
  • Loading branch information
alloy committed Jun 25, 2010
1 parent 8d9c305 commit 18e79cc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/rucola/generators/rucola/app/app_generator.rb
Expand Up @@ -9,7 +9,11 @@ class Type < Thor::Group
def invoke_app_generator
type = ARGV.shift
generator_name = "#{project_type.camelize}Generator"
invoke Rucola::Generators::App.const_get(generator_name)
Rucola::Generators::App.const_get(generator_name).start
rescue NameError
puts "No project generator of type `#{type}' exists."
puts self.class.desc
exit 1
end

def self.banner
Expand Down Expand Up @@ -46,7 +50,7 @@ def self.xcodeproj_template_info
end

def self.banner
"rucola new #{arguments.map(&:usage).join(' ')} [options]"
"rucola new #{generator_name} #{arguments.map(&:usage).join(' ')} [options]"
end

def self.desc
Expand Down

0 comments on commit 18e79cc

Please sign in to comment.