Class: HammerCLIForemanWebhooks::WebhookTemplate::ExportCommand
- Inherits:
-
HammerCLIForeman::DownloadCommand
- Object
- HammerCLIForeman::DownloadCommand
- HammerCLIForemanWebhooks::WebhookTemplate::ExportCommand
- Defined in:
- lib/hammer_cli_foreman_webhooks/webhook_template.rb
Instance Method Summary collapse
Instance Method Details
#default_filename ⇒ Object
106 107 108 |
# File 'lib/hammer_cli_foreman_webhooks/webhook_template.rb', line 106 def default_filename "Webhook Template-#{Time.new.strftime("%Y-%m-%d")}.txt" end |
#saved_response_message(filepath) ⇒ Object
102 103 104 |
# File 'lib/hammer_cli_foreman_webhooks/webhook_template.rb', line 102 def (filepath) _("The webhook template has been saved to %{path}.") % { path: filepath } end |