Skip to content

Commit

Permalink
Set database driver as a set dependency for mysql and postgres. Its n…
Browse files Browse the repository at this point in the history
…icer to not have to choose this so that it can be executed and you can walk away.
  • Loading branch information
benschwarz committed Feb 26, 2009
1 parent e4b780d commit 1e851ca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion config/install.rb
Expand Up @@ -6,7 +6,6 @@
policy :passenger_stack, :roles => :app do
requires :appserver
requires :database
requires :database_driver
requires :webserver
requires :scm
requires :memcached
Expand Down
3 changes: 2 additions & 1 deletion config/stack/mysql.rb
Expand Up @@ -5,9 +5,10 @@
verify do
has_executable 'mysql'
end
requires :mysql_driver
end

package :mysql_driver, :provides => :database_driver do
package :mysql_driver do
description 'Ruby MySQL database driver'
gem 'mysql'

Expand Down
3 changes: 2 additions & 1 deletion config/stack/postgresql.rb
Expand Up @@ -5,9 +5,10 @@
verify do
has_executable 'psql'
end
requires :postgresql_driver
end

package :postgresql_driver, :provides => :database_driver do
package :postgresql_driver do
description 'Ruby PostgreSQL database driver'
gem 'postgres'

Expand Down

0 comments on commit 1e851ca

Please sign in to comment.