Created
June 2, 2021 10:06
-
-
Save zelic91/f1b1dbba834c0bf3af4a946536f51b71 to your computer and use it in GitHub Desktop.
Sample ruby executable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require_relative 'base_exec' | |
class SampleExec < BaseExec | |
def initialize() | |
super() | |
end | |
def run! | |
super | |
begin | |
# Do long run tasks | |
loop do | |
end | |
rescue SystemExit, Interrupt | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment