Class: Cerberus::Builder::Rant

Inherits:
RubyBase
  • Object
show all
Defined in:
lib/cerberus/builder/rant.rb

Instance Attribute Summary

Attributes inherited from RubyBase

#output

Instance Method Summary collapse

Methods inherited from RubyBase

#brokeness, #run

Constructor Details

#initialize(config) ⇒ Rant

Returns a new instance of Rant.



4
5
6
# File 'lib/cerberus/builder/rant.rb', line 4

def initialize(config)
  super(config, "rant")
end

Instance Method Details

#successful?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/cerberus/builder/rant.rb', line 8

def successful?
  $?.exitstatus == 0 and not @output.include?("#{@cmd} aborted!") and @output.include?("0 failures, 0 errors")
end