Class: Packer::Output::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/packer/output/base.rb

Overview

Base class for output from all Packer commands

Direct Known Subclasses

Fix, MachineReadable, Push, Validate

Instance Method Summary collapse

Constructor Details

#initialize(output) ⇒ Base

Returns a new instance of Base.

Parameters:

  • output (Mixlib::ShellOut)

    from the build command



6
7
8
# File 'lib/packer/output/base.rb', line 6

def initialize(output)
  @output = output
end

Instance Method Details

#stderrString

Returns the raw standard error output

Returns:

  • (String)


13
14
15
# File 'lib/packer/output/base.rb', line 13

def stderr
  @output.stderr
end

#stdoutString

Returns the raw standard output

Returns:

  • (String)


20
21
22
# File 'lib/packer/output/base.rb', line 20

def stdout
  @output.stdout
end