12 lines
198 B
Ruby
Executable File
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}"
|
|
|