Permalink
Browse files

Add note about setting :enteprise: true, and add error for when that'…

…s not specified
  • Loading branch information...
1 parent 6247ee8 commit 01fe011be27eb4bfcbd70f8ef3b0cba4ca5dd2ec @technicalpickles technicalpickles committed with Rails Machine Nov 28, 2012
Showing with 3 additions and 0 deletions.
  1. +1 −0 Readme.rdoc
  2. +2 −0 lib/moonshine/manifest/rails/passenger.rb
View
@@ -51,5 +51,6 @@ This is what a passenger enterprise block in moonshine.yml should look like (in
<pre><code>:passenger:
:version: 3.0.18
+ :enterprise: true
:gemfile: vendor/gems/passenger-enterprise-server-3.0.18.gem
:rolling_restarts: true</code></pre>
@@ -12,6 +12,8 @@ def passenger_gem
:provider => :gem,
:ensure => :absent
+ raise "Passenger Enterprise enabled, but no gemfile specified. Update config/moonshine.yml with :gemfile for :passenger and try again" unless configuration[:passenger][:gemfile]
+
exec 'install passenger-enterprise-server gem',
:command => "gem install #{configuration[:passenger][:gemfile]}",
:unless => "gem list | grep passenger-enterprise-server | grep #{configuration[:passenger][:version]}",

0 comments on commit 01fe011

Please sign in to comment.