bin/nephos-generator in nephos-server-0.1.8 vs bin/nephos-generator in nephos-server-0.1.10
- old
+ new
@@ -40,9 +40,17 @@
def initialize_application
raise "Not an empty dir" unless Dir[File.expand_path "*"].empty?
File.write "routes.rb", ROUTE_RB
File.write "Gemfile", GEMFILE
Dir.mkdir "controllers"
+ begin
+ `git init .`
+ puts "Git repository initialized"
+ rescue Errno::ENOENT => err
+ puts "Warning: git repository not initialized"
+ rescue => err
+ puts "Error: #{err.message}"
+ end
exec("bundle install")
end
require 'optparse'