Sha256: 651947a2a14476593dac3323f32dd58193564efba9478778681005c21d00c92d

Contents?: true

Size: 715 Bytes

Versions: 28

Compression:

Stored size: 715 Bytes

Contents

module PoolParty
  module Resources
    
    class App < Rails
      
      default_options(
        :rails_version => "2.3.3",
        :on => :passenger,
        :at => nil
      )
      
      def after_loaded(o={})
        
        raise PoolPartyError.create("RailsSiteError", "You must specify a root directory with at") unless self.at
        case on
        when :passenger
          site_name = name
          apache do
            passenger_site(:name => site_name, :dir => at, :deploy_dirs => true)
          end
        else
          raise PoolPartyError.create("RailsSiteError", "You must specify a supported rails provider. Supported: [:passenger]")
        end
      end
      
    end
    
  end
end

Version data entries

28 entries across 28 versions & 3 rubygems

Version Path
auser-poolparty-1.3.0 lib/poolparty/plugins/rails/app.rb
auser-poolparty-1.3.1 lib/poolparty/plugins/rails/app.rb
auser-poolparty-1.3.10 lib/poolparty/plugins/rails/app.rb
auser-poolparty-1.3.11 lib/poolparty/plugins/rails/app.rb
auser-poolparty-1.3.12 lib/poolparty/plugins/rails/app.rb
auser-poolparty-1.3.13 lib/poolparty/plugins/rails/app.rb
auser-poolparty-1.3.14 lib/poolparty/plugins/rails/app.rb
auser-poolparty-1.3.15 lib/poolparty/plugins/rails/app.rb
auser-poolparty-1.3.16 lib/poolparty/plugins/rails/app.rb
auser-poolparty-1.3.17 lib/poolparty/plugins/rails/app.rb
auser-poolparty-1.3.2 lib/poolparty/plugins/rails/app.rb
auser-poolparty-1.3.3 lib/poolparty/plugins/rails/app.rb
auser-poolparty-1.3.4 lib/poolparty/plugins/rails/app.rb
auser-poolparty-1.3.5 lib/poolparty/plugins/rails/app.rb
auser-poolparty-1.3.6 lib/poolparty/plugins/rails/app.rb
auser-poolparty-1.3.7 lib/poolparty/plugins/rails/app.rb
auser-poolparty-1.3.8 lib/poolparty/plugins/rails/app.rb
fairchild-poolparty-1.3.17 lib/poolparty/plugins/rails/app.rb
fairchild-poolparty-1.3.5 lib/poolparty/plugins/rails/app.rb
poolparty-1.3.15 lib/poolparty/plugins/rails/app.rb