Sha256: 2600e5b4ffc2404a2ae36fd6414ac54b5a996c092e629a1fc28af2d995a3c79d
Contents?: true
Size: 492 Bytes
Versions: 8
Compression:
Stored size: 492 Bytes
Contents
module Hyla class Command program :int_block do # kill threads etc # make sure to exit or abort, otherwise your program keeps running Hyla::logger2.warn "CTRL-C / Shutdown command received" exit 1 end # # Check mandatory options # def self.check_mandatory_option?(key, value) if value.nil? or value.empty? Hyla.logger2.warn "Mandatory option missing: #{key}" exit(1) else true end end end end
Version data entries
8 entries across 8 versions & 1 rubygems