Class: BigBang::DSL::ClusterRun

Inherits:
Run
  • Object
show all
Defined in:
lib/bigbang/dsl/cluster_run.rb

Instance Attribute Summary collapse

Attributes inherited from Run

#assigned_ips, #domain, #ec2_instances, #elastic_ip, #instance, #wildcard_domain, #zone_sizes

Instance Method Summary collapse

Methods inherited from Run

#instances_count, #zones

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

#lbObject

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