Sha256: 1dc4fdcbbfe671889b1e50d78dd067bbc240a7926874b5486a642471b18aa0b5

Contents?: true

Size: 493 Bytes

Versions: 13

Compression:

Stored size: 493 Bytes

Contents

class WebServers
  plugin :apachetest do    
    attr_accessor :php
    
    def loaded(o={}, &block)
      @loaded ||= true
    end
    
    def enable
    end
    
    def enable_php
      @php = true
    end
    
    def php
      @php ||= false
    end
    
    def site(name=:domain1, opts={})
      virtual_host name, opts
    end
    
    def virtual_host(name, opts={})
      opts = {
        :document_root => opts[:document_root] || "/www/#{name}/"
      }
    end        
  end
end

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
auser-poolparty-1.1.1 spec/poolparty/poolparty/test_plugins/webserver.rb
auser-poolparty-1.1.3 spec/poolparty/poolparty/test_plugins/webserver.rb
auser-poolparty-1.1.4 spec/poolparty/poolparty/test_plugins/webserver.rb
auser-poolparty-1.1.5 spec/poolparty/poolparty/test_plugins/webserver.rb
auser-poolparty-1.1.6 spec/poolparty/poolparty/test_plugins/webserver.rb
auser-poolparty-1.1.7 spec/poolparty/poolparty/test_plugins/webserver.rb
auser-poolparty-1.2.0 spec/poolparty/poolparty/test_plugins/webserver.rb
auser-poolparty-1.2.1 spec/poolparty/poolparty/test_plugins/webserver.rb
auser-poolparty-1.2.2 spec/poolparty/poolparty/test_plugins/webserver.rb
fairchild-poolparty-1.1.3 spec/poolparty/poolparty/test_plugins/webserver.rb
fairchild-poolparty-1.1.4 spec/poolparty/poolparty/test_plugins/webserver.rb
fairchild-poolparty-1.1.5 spec/poolparty/poolparty/test_plugins/webserver.rb
poolparty-1.2.2 spec/poolparty/poolparty/test_plugins/webserver.rb