def run_command(cmd, opt = {})
      node = get_working_node
      cmd = build_command(cmd)
      cmd = add_pre_command(cmd)
      ret = ssh_exec!(node, cmd)

      if @example
        @example.metadata[:command] = cmd
        @example.metadata[:stdout]  = ret[:stdout]
      end

      CommandResult.new ret
    end
def run_command(cmd, opt = {})
      node = get_working_node
      cmd = build_command(cmd)
      cmd = add_pre_command(cmd)
      ret = ssh_exec!(node, cmd)

      if @example
        @example.metadata[:command] = cmd
        @example.metadata[:stdout]  = ret[:stdout]
      end

      CommandResult.new ret
    end
Run a unix style command using serverspec.  Defaults to running on the 'default_node'
 test node, otherwise uses the node specified in @example.metadata[:node]
 @param [String] cmd The serverspec command to executed
 @param [Hash] opt No currently supported options
 @return [Hash] Returns a hash containing :exit_status, :stdout and :stderr