Class: Egads::Check

Inherits:
Group
  • Object
show all
Includes:
LocalHelpers, Thor::Actions
Defined in:
lib/egads/command/check.rb

Instance Method Summary collapse

Methods included from LocalHelpers

#sha, #short_sha, #tarball

Methods inherited from Group

exit_on_failure?

Instance Method Details

#checkObject



10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/egads/command/check.rb', line 10

def check
  say_status :rev, "#{rev} parsed to #{sha}"

  wait_for_build if options[:wait]

  if tarball.exists?
    say_status :exists, "Tarball for #{sha} exists"
    exit 0
  else
    say_status :missing, "Tarball for #{sha} does not exist", :red
    exit 1
  end
end