class RemoteExec::Base

Define minimal interface for execution handlers

Public Class Methods

new() { |self| ... } click to toggle source

standard in place handler that ensures shutdown is called

# File lib/remote-exec/base.rb, line 55
def initialize
  if block_given?
    begin
      yield self
    ensure
      shutdown
    end
  end
end

Public Instance Methods

shutdown() click to toggle source

minimal handler for shutdown

# File lib/remote-exec/base.rb, line 66
def shutdown
  before_shutdown.changed_and_notify(self)
end