lib/hugo/balancer.rb in hugo-0.1.11 vs lib/hugo/balancer.rb in hugo-0.2.0

- old
+ new

@@ -26,9 +26,41 @@ :listeners => [{ :instance_port => port, :protocol =>"HTTP", :load_balancer_port => web}, { :instance_port => ssl_port, :protocol =>"TCP", :load_balancer_port => ssl_web}] ) end + def help + x = <<HELP + +Hugo balancer +----------------- + +optional attributes +----------------- +zone - zone +port - app server port +web - balancer port +ssl_port - ssl app server port +ssl_web - ssl balancer port +type - port type + + +defaults +----------------- +DEFAULT_ZONE = 'us-east-1c' +DEFAULT_PORT = '8080' +DEFAULT_WEB = '80' +DEFAULT_TYPE = 'http' +DEFAULT_SSL_PORT = '8443' +DEFAULT_SSL_WEB = '443' + + + +HELP + puts x + x + end + def name(arg=nil) set_or_return(:name, arg, :kind_of => [String]) end def zone(arg=nil) \ No newline at end of file