Class: Chefdore::Cli
- Inherits:
-
Thor
- Object
- Thor
- Chefdore::Cli
- Defined in:
- lib/chefdore/cli.rb
Instance Method Summary collapse
Instance Method Details
#convert ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/chefdore/cli.rb', line 18 def convert ARGV.replace [] stdin = ARGF.read begin Chefdore::Magic.convert(json: stdin, cli: self) rescue JSON::ParserError => e puts e. exit 1 end end |
#version ⇒ Object
32 33 34 |
# File 'lib/chefdore/cli.rb', line 32 def version say Chefdore::VERSION end |