Class: BigBang::DSL::ClusterRun
- Defined in:
- lib/bigbang/dsl/cluster_run.rb
Instance Attribute Summary collapse
-
#lb ⇒ Object
Returns the value of attribute lb.
Attributes inherited from Run
#assigned_ips, #domain, #ec2_instances, #elastic_ip, #instance, #wildcard_domain, #zone_sizes
Instance Method Summary collapse
- #availability_zone(h) ⇒ Object
-
#initialize(name, instances) ⇒ ClusterRun
constructor
A new instance of ClusterRun.
- #load_balancer(name, &block) ⇒ Object
Methods inherited from Run
Constructor Details
#initialize(name, instances) ⇒ ClusterRun
Returns a new instance of ClusterRun.
9 10 11 |
# File 'lib/bigbang/dsl/cluster_run.rb', line 9 def initialize(name, instances) super(name, instances) end |
Instance Attribute Details
#lb ⇒ Object
Returns the value of attribute lb.
7 8 9 |
# File 'lib/bigbang/dsl/cluster_run.rb', line 7 def lb @lb end |
Instance Method Details
#availability_zone(h) ⇒ Object
13 14 15 |
# File 'lib/bigbang/dsl/cluster_run.rb', line 13 def availability_zone(h) @zone_sizes.merge!(h) end |
#load_balancer(name, &block) ⇒ Object
17 18 19 20 |
# File 'lib/bigbang/dsl/cluster_run.rb', line 17 def load_balancer(name, &block) @lb = LoadBalancer.new(name) @lb.instance_eval(&block) end |