Class: Isono::Runner::CLI::Oneshot

Inherits:
Base
  • Object
show all
Includes:
Logger
Defined in:
lib/isono/runner/cli.rb

Instance Method Summary collapse

Methods included from Logger

included, initialize

Methods inherited from Base

#initialize, #optparse, #run

Constructor Details

This class inherits a constructor from Isono::Runner::Base

Instance Method Details

#run_main(manifest, &blk) ⇒ Object



17
18
19
20
21
22
23
# File 'lib/isono/runner/cli.rb', line 17

def run_main(manifest, &blk)
  Isono::Node.new(manifest).connect(@options[:amqp_server_uri]) do |n|
    exit(1) unless n.connected?
    @node = n
    self.instance_eval &blk
  end
end