Method: MFi::MPower#exec

Defined in:
lib/mpower.rb

#exec(&block) ⇒ Object

execute commands in a given execution context



50
51
52
53
54
55
# File 'lib/mpower.rb', line 50

def exec &block
  connect!
  yield self
ensure
  disconnect!
end