Sha256: 181ddc425d50b5e99e0bb7758e519ede631c67b228026b19cc10d61338d6cc77
Contents?: true
Size: 1.33 KB
Versions: 8
Compression:
Stored size: 1.33 KB
Contents
# Author:: Eric Crane (mailto:eric.crane@mac.com) # Copyright:: Copyright (c) 2019 Eric Crane. All rights reserved. # # Quit the running gloo engine. # module Gloo module Verbs class Quit < Gloo::Core::Verb KEYWORD = 'quit'.freeze KEYWORD_SHORT = 'q'.freeze # # Run the verb. # # We'll mark the application as not running and let the # engine stop gracefully next time through the loop. # def run $engine.stop_running end # # Get the Verb's keyword. # def self.keyword return KEYWORD end # # Get the Verb's keyword shortcut. # def self.keyword_shortcut return KEYWORD_SHORT end # --------------------------------------------------------------------- # Help # --------------------------------------------------------------------- # # Get help for this verb. # def self.help return <<~TEXT QUIT VERB NAME: quit SHORTCUT: q DESCRIPTION Stop running the gloo application. Cleanup and shutdown. SYNTAX quit PARAMETERS None RESULT None ERRORS None TEXT end end end end
Version data entries
8 entries across 8 versions & 1 rubygems