lib/kitabu/generator.rb in kitabu-1.0.5 vs lib/kitabu/generator.rb in kitabu-1.0.6

- old
+ new

@@ -41,10 +41,14 @@ def copy_helper_file copy_file "helper.rb", "config/helper.rb" end + def copy_gemfile + copy_file "Gemfile", "Gemfile" + end + def create_directories empty_directory "output" empty_directory "images" empty_directory "code" end @@ -59,9 +63,15 @@ create_file "code/.gitkeep" end def copy_guardfile copy_file "Guardfile", "Guardfile" + end + + def bundle_install + inside destination_root do + run "bundle install" + end end private # Retrieve user's name using finger. # Defaults to <tt>John Doe</tt>.