Class: Amphibian::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/amphibian/runner.rb

Instance Method Summary collapse

Constructor Details

#initialize(balancer_manager_url, test_page = '/', test_regex = nil, dry_run = false) ⇒ Runner

TODO: log everything, and set log level, so we don’t have to print anything TODO: Email at the end



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/amphibian/runner.rb', line 6

def initialize(balancer_manager_url, test_page='/', test_regex=nil, dry_run=false)
  @balancer_manager_url = balancer_manager_url
  @test_page = test_page
  @test_regex = test_regex
  @dry_run = dry_run
  @errors = []

  @balancer_manager = BalancerManager.new(@balancer_manager_url, @dry_run)

  @min_hosts = -1
end

Instance Method Details

#do_checkObject



18
19
20
# File 'lib/amphibian/runner.rb', line 18

def do_check
  check
end