Class: CronForGithub::CLI
- Inherits:
-
Thor
- Object
- Thor
- CronForGithub::CLI
- Defined in:
- lib/cron_for_github/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.exit_on_failure? ⇒ Boolean
5 6 7 |
# File 'lib/cron_for_github/cli.rb', line 5 def self.exit_on_failure? true end |
Instance Method Details
#clear ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/cron_for_github/cli.rb', line 21 def clear setup_logger() params = { slug: [:slug], namespace: [:namespace] } Ping.new.clear(params) rescue StandardError => e () raise e end |
#ping ⇒ Object
40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/cron_for_github/cli.rb', line 40 def ping setup_logger() params = { slug: [:slug], namespace: [:namespace], base: [:base] } Ping.new.ping(params) rescue StandardError => e () raise e end |
#version ⇒ Object
12 13 14 |
# File 'lib/cron_for_github/cli.rb', line 12 def version puts "CronForGithub version #{::CronForGithub::VERSION}" end |