Sha256: cb4e0bfa5e787a4a20a7b97197dd2a5ec3a6a3ed60472c231e8d60775eca9e11
Contents?: true
Size: 503 Bytes
Versions: 4
Compression:
Stored size: 503 Bytes
Contents
module Jets::CLI::Lambda module Checks extend Memoist def check_deployed! return if stack_exists?(Jets.project.namespace) warn "ERROR: Project has not been deployed".color(:red) exit 1 end def check_workers! return if workers_deployed? warn "No worker functions deployed" exit 1 end def workers_deployed? Jets::CLI::Maintenance::Worker::Saver.new(@options).lambda_functions.size > 0 end memoize :workers_deployed? end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
jets-6.0.5 | lib/jets/cli/lambda/checks.rb |
jets-6.0.4 | lib/jets/cli/lambda/checks.rb |
jets-6.0.3 | lib/jets/cli/lambda/checks.rb |
jets-6.0.2 | lib/jets/cli/lambda/checks.rb |