Class: Buildbox::Build

Inherits:
Hashie::Mash
  • Object
show all
Defined in:
lib/buildbox/build.rb

Instance Method Summary collapse

Instance Method Details

#cancelling?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/buildbox/build.rb', line 9

def cancelling?
  cancel_started == true
end

#finished?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/buildbox/build.rb', line 17

def finished?
  !finished_at.nil?
end

#started?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/buildbox/build.rb', line 13

def started?
  !started_at.nil?
end

#success?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/buildbox/build.rb', line 5

def success?
  exit_status == 0
end