server/files/usr/local/ec2onrails/lib/mysql_helper.rb in pauldowman-ec2onrails-0.9.10 vs server/files/usr/local/ec2onrails/lib/mysql_helper.rb in pauldowman-ec2onrails-0.9.10.0
- old
+ new
@@ -15,11 +15,10 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
require 'rubygems'
-require 'aws/s3'
require 'yaml'
require 'erb'
require 'fileutils'
require "#{File.dirname(__FILE__)}/utils"
@@ -38,10 +37,10 @@
end
def load_db_config(config_file)
db_config = YAML::load(ERB.new(File.read(config_file)).result)
if db_config && db_config[@rails_env].nil?
- puts "the rails environment '#{@rails_env}' was not found in this db onfig file: #{config_file}"
+ puts "the rails environment '#{@rails_env}' was not found in this db config file: #{config_file}"
end
db_config = db_config[@rails_env]
@database = db_config['database']
@user = db_config['username']
@password = db_config['password']
\ No newline at end of file