Class: HammerCLIForemanWebhooks::WebhookTemplate::ExportCommand

Inherits:
HammerCLIForeman::DownloadCommand
  • Object
show all
Defined in:
lib/hammer_cli_foreman_webhooks/webhook_template.rb

Instance Method Summary collapse

Instance Method Details

#default_filenameObject



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 saved_response_message(filepath)
  _("The webhook template has been saved to %{path}.") % { path: filepath }
end