Class: Cerberus::Builder::Rake

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

Instance Attribute Summary

Attributes inherited from RubyBase

#output

Instance Method Summary collapse

Methods inherited from RubyBase

#brokeness, #run

Constructor Details

#initialize(config) ⇒ Rake

Returns a new instance of Rake.



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

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

Instance Method Details

#successful?Boolean

Returns:

  • (Boolean)


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

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