class ComeFlyWithMe::Scaffold
Public Instance Methods
generate()
click to toggle source
# File lib/come_fly_with_me.rb, line 6 def generate system("git clone https://github.com/jpatel531/sinatra-scaffold.git") system("mv sinatra-scaffold #{ARGV.first}") system("sed -i.bak \"s/Waddup/#{ARGV.first}/g\" #{ARGV.first}/views/layouts/application.haml") system("rm -f #{ARGV.first}/views/layouts/application.haml.bak") Dir.chdir "#{ARGV.first}" system("git remote rm origin") end