class HandyToolbox::ToolRunner

Public Class Methods

new() click to toggle source
# File lib/handy_toolbox/tool_runner.rb, line 5
def initialize
  @tool = nil
end

Public Instance Methods

queue(tool) click to toggle source
# File lib/handy_toolbox/tool_runner.rb, line 9
def queue(tool)
  @tool = tool
end
run() click to toggle source
# File lib/handy_toolbox/tool_runner.rb, line 13
def run
  if !@tool.nil?
    puts @tool.cmd
    Kernel.exec @tool.cmd
  end
end