Class: DdPostGauge::Cli
- Inherits:
-
Thor
- Object
- Thor
- DdPostGauge::Cli
- Defined in:
- lib/dd_post_gauge/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.exit_on_failure? ⇒ Boolean
32 33 34 |
# File 'lib/dd_post_gauge/cli.rb', line 32 def self.exit_on_failure? pp "Exit on failure" end |
Instance Method Details
#call ⇒ Object
22 23 24 25 26 27 28 29 30 |
# File 'lib/dd_post_gauge/cli.rb', line 22 def call client = DdPostGauge::Client.new(api_key: [:api_key], site: [:site]) client.call( [:metric_name], [:value], resource_name: [:resource_name], type_name: [:type_name] ) end |
#version ⇒ Object
10 11 12 |
# File 'lib/dd_post_gauge/cli.rb', line 10 def version puts DdPostGauge::VERSION end |