Class: Serverkit::Actions::Check

Inherits:
Base
  • Object
show all
Defined in:
lib/serverkit/actions/check.rb

Constant Summary

Constants inherited from Base

Base::DEFAULT_LOG_LEVEL

Instance Method Summary collapse

Methods inherited from Base

#call, #initialize

Constructor Details

This class inherits a constructor from Serverkit::Actions::Base

Instance Method Details

#runObject

Check if all backends have ideal states, then exit with exit-code 0 or 1


8
9
10
11
12
13
14
# File 'lib/serverkit/actions/check.rb', line 8

def run
  if check_resources
    exit
  else
    exit(1)
  end
end