From 86e434e8b9bcbeac7cd56adb8d2a581aafe53bae Mon Sep 17 00:00:00 2001 From: luke Date: Tue, 2 Jan 2007 22:24:32 +0000 Subject: Adding postgres as a dbadapter option git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2019 980ebf18-57e1-0310-9a29-db15c13687c0 --- lib/puppet/rails.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/puppet/rails.rb') diff --git a/lib/puppet/rails.rb b/lib/puppet/rails.rb index 7cb58cd94..8ec02af7c 100644 --- a/lib/puppet/rails.rb +++ b/lib/puppet/rails.rb @@ -36,11 +36,13 @@ module Puppet::Rails case Puppet[:dbadapter] when "sqlite3": args[:dbfile] = Puppet[:dblocation] - when "mysql": + when "mysql", "postgresql": args[:host] = Puppet[:dbserver] args[:username] = Puppet[:dbuser] args[:password] = Puppet[:dbpassword] args[:database] = Puppet[:dbname] + else + raise ArgumentError, "Invalid db adapter %s" % Puppet[:dbadapter] end args end -- cgit