Sha256: 768659dacd8ca5b5ca5a3aac9ee95528ef82dc93f5361c2d525cc58c0ba6426d
Contents?: true
Size: 977 Bytes
Versions: 1
Compression:
Stored size: 977 Bytes
Contents
require 'deployml/exceptions/missing_option' require 'deployml/options/mongrel' module DeploYML module Servers module Mongrel def initialize_server @mongrel = Options::Mongrel.new(@server_options) @mongrel.environment ||= @name end def mongrel_cluster(shell,*args) options = args + ['-c', @mongrel.config] shell.run 'mongrel_rails', *options end def server_config(shell) unless @mongrel.config raise(MissingOption,"No 'config' option specified under server options",caller) end options = ['-c', dest.path] + @mongrel.arguments shell.run 'mongrel_rails', 'cluster::configure', *options end def server_start(shell) mongrel_cluster 'cluster::start' end def server_stop(shell) mongrel_cluster 'cluster::stop' end def server_restart(shell) mongrel_cluster 'cluster::restart' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
deployml-0.3.0 | lib/deployml/servers/mongrel.rb |