Path: | doc/using_hammer_cli_foreman_command.md |
Last Update: | Tue Aug 04 03:54:50 -0400 2015 |
Using HammerCLIForeman
hammer-cli-foreman comes with a handy framework similar to [hammer-cli‘s ApiPie::Command](github.com/theforeman/hammer-cli/blob/master/doc/creating_apipie_commands.md#creating-commands-for-restful-api-with-apipie) which allows the creation of CRUD commands based off the foreman servers api documentation.
Using HammerCLIForeman‘s Command class instead of ```HammerCLI::Command``` or ```HammerCLI::Apipie::Command``` will allow you to use less code, piggy back on the HammerCLIForeman configuration (username/password/cache/etc..) and rely more on the foreman servers api description for inputs.
Example Command Template