Sha256: 4cf7627752a7ffc54a73b90d68ddedbdd3335b57a0c4c2d10e5e3b409700c1fb
Contents?: true
Size: 1.17 KB
Versions: 7
Compression:
Stored size: 1.17 KB
Contents
#!/usr/bin/ruby # This file is part of EC2 on Rails. # http://rubyforge.org/projects/ec2onrails/ # # Copyright 2007 Paul Dowman, http://pauldowman.com/ # # EC2 on Rails is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # EC2 on Rails is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # This script runs a command with RAILS_ENV set to current value for # this instance. If a command isn't given as an argument it simply # prints the value of RAILS_ENV require "yaml" require "#{File.dirname(__FILE__)}/../lib/utils" if ARGV.any? exec "env RAILS_ENV=#{Ec2onrails::Utils.rails_env} #{ARGV.join(' ')}" else puts Ec2onrails::Utils.rails_env end
Version data entries
7 entries across 7 versions & 3 rubygems