lib/simba.rb in simba-0.0.1 vs lib/simba.rb in simba-0.0.2

- old
+ new

@@ -15,19 +15,22 @@ end 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 def setup_skeleton self.destination_root = name directory("simba/base_app/", self.destination_root) end def bundle_dependencies - say "Bundling application dependencies using bundler." - in_root do - run 'bundle install' + unless options[:skip_bundle] + say "Bundling application dependencies using bundler." + in_root do + run 'bundle install' + end end end end end