Skip to content

Commit

Permalink
Add note about setting :enteprise: true, and add error for when that'…
Browse files Browse the repository at this point in the history
…s not specified
  • Loading branch information
technicalpickles authored and Rails Machine committed Nov 28, 2012
1 parent 6247ee8 commit 01fe011
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Readme.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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>
2 changes: 2 additions & 0 deletions lib/moonshine/manifest/rails/passenger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]}",
Expand Down

0 comments on commit 01fe011

Please sign in to comment.