Class: Pippi::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/pippi/context.rb

Defined Under Namespace

Classes: DebugLogger, NullLogger

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeContext

Returns a new instance of Context.



21
22
23
24
25
26
27
28
# File 'lib/pippi/context.rb', line 21

def initialize
  @report = Pippi::Report.new
  @debug_logger = if ENV['PIPPI_DEBUG']
                    Pippi::Context::DebugLogger.new
  else
    Pippi::Context::NullLogger.new
  end
end

Instance Attribute Details

#checksObject

Returns the value of attribute checks.



4
5
6
# File 'lib/pippi/context.rb', line 4

def checks
  @checks
end

#debug_loggerObject (readonly)

Returns the value of attribute debug_logger.



19
20
21
# File 'lib/pippi/context.rb', line 19

def debug_logger
  @debug_logger
end

#reportObject (readonly)

Returns the value of attribute report.



19
20
21
# File 'lib/pippi/context.rb', line 19

def report
  @report
end