Sha256: 97ba18ceb8293a374dd3f65fb6a52052029dfac0080b770f6fa4cc2518bec72e
Contents?: true
Size: 477 Bytes
Versions: 8
Compression:
Stored size: 477 Bytes
Contents
require "thor" module ContainersManager class Cli < Thor include Thor::Actions desc 'exec', 'Execute jobs to manage containers' def exec exception_rescue do Application.exec end end desc 'check', 'Output the configuration' def check exception_rescue do Application.check end end private def exception_rescue yield rescue Exception => e $stdout.puts(e.message) end end end
Version data entries
8 entries across 8 versions & 1 rubygems