penchant/template/script/gemfile
2011-07-14 15:50:51 -04:00

12 lines
198 B
Ruby
Executable File

#!/usr/bin/env ruby
require 'erb'
env = ARGV[0]
File.open('Gemfile', 'w') { |fh| fh.print ERB.new(File.read('Gemfile.erb')).result(binding) }
system %{bundle}
puts "Gemfile switched to #{env}"