lib/simba.rb in simba-0.0.2 vs lib/simba.rb in simba-0.0.3
- old
+ new
@@ -12,16 +12,20 @@
def self.banner
"simba [app_name]"
end
- desc "Description:\n\n\tsimba is a generator for Sinatra applications."
+ desc "Description:\n\n\tsimba is a generator for sinatra applications."
argument :name, :desc => "The name of your sinatra app"
- class_option :skip_bundle, :default => false, :type => :boolean
+ class_option :skip_bundle,
+ :default => false,
+ :type => :boolean,
+ :desc => "Skip bundle install when creating app skeleton"
def setup_skeleton
self.destination_root = name
+ @class_name = name
directory("simba/base_app/", self.destination_root)
end
def bundle_dependencies
unless options[:skip_bundle]