lib/padrino-gen/generators/app.rb in padrino-gen-0.7.3 vs lib/padrino-gen/generators/app.rb in padrino-gen-0.7.4

- old
+ new

@@ -38,10 +38,11 @@ def setup_app @class_name = name.underscore.classify self.destination_root = File.join(options[:root], name) directory("app/", destination_root) store_component_config('.components') + template "templates/Gemfile.tt", destination_root("Gemfile") end # For each component, retrieve a valid choice and then execute the associated generator def setup_components self.class.component_types.each do |comp| @@ -52,10 +53,10 @@ # Bundle all required components using bundler and Gemfile def bundle_dependencies if options[:run_bundle] say "Bundling application dependencies using bundler..." - in_root { run 'gem bundle' } + in_root { run 'bundle install' } end end end end end