lib/generators/pakyow/app/app_generator.rb in pakyow-0.8.0 vs lib/generators/pakyow/app/app_generator.rb in pakyow-0.9.0
- old
+ new
@@ -36,11 +36,11 @@
exit
end
end
exec
- puts "Done!"
+ puts "Done! Run `cd #{@dest}; pakyow server` to get started!"
end
protected
# copies src files to dest
@@ -48,11 +48,13 @@
FileUtils.cp_r(@src, @dest)
end
# performs and other setup (e.g. bundle install)
def exec
- puts "Running `bundle install`"
- `cd #{@dest} && bundle install`
+ FileUtils.cd(@dest) do
+ puts "Running `bundle install` in #{Dir.pwd}"
+ system("bundle install")
+ end
end
end
end
end