# File lib/rubyipmi/commands/basecommand.rb, line 31 def initialize(commandname, opts = ObservableHash.new) # This will locate the command path or raise an error if not found @cmdname = commandname @cmd = `which #{commandname}`.strip if not $?.success? raise "#{commandname} command not found, is #{commandname} installed?" end @options = opts @options.add_observer(self) end