Class: FPM::Cookery::CLI::InspectCmd
- Inherits:
-
Command
- Object
- Clamp::Command
- FPM::Cookery::CLI
- Command
- FPM::Cookery::CLI::InspectCmd
- Defined in:
- lib/fpm/cookery/cli.rb
Instance Method Summary collapse
Methods inherited from Command
add_recipe_parameter!, #config, #execute, #init_logging, #recipe_file, #show_version, #validate
Instance Method Details
#exec(config, recipe, packager) ⇒ Object
205 206 207 208 209 210 211 |
# File 'lib/fpm/cookery/cli.rb', line 205 def exec(config, recipe, packager) unless format.nil? puts recipe.template(format) else puts terse? ? recipe.to_json : recipe.to_pretty_json end end |