Class: Isono::Runner::CLI::Oneshot
- Includes:
- Logger
- Defined in:
- lib/isono/runner/cli.rb
Instance Method Summary collapse
Methods included from Logger
Methods inherited from Base
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([:amqp_server_uri]) do |n| exit(1) unless n.connected? @node = n self.instance_eval &blk end end |