Class: Amphibian::Runner
- Inherits:
-
Object
- Object
- Amphibian::Runner
- Defined in:
- lib/amphibian/runner.rb
Instance Method Summary collapse
- #do_check ⇒ Object
-
#initialize(balancer_manager_url, test_page = '/', test_regex = nil, dry_run = false) ⇒ Runner
constructor
TODO: log everything, and set log level, so we don’t have to print anything TODO: Email at the end.
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
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/amphibian/runner.rb', line 8 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 = [] if !balancer_manager_url.match("127.0.0.1") && !dry_run @dry_run = true log_error "Not running on localhost: Performing dry-run" end @balancer_manager = BalancerManager.new(@balancer_manager_url, @dry_run) @min_hosts = -1 end |
Instance Method Details
#do_check ⇒ Object
25 26 27 |
# File 'lib/amphibian/runner.rb', line 25 def do_check check end |