Class: HammerCLIForeman::ReportTemplate::ExportCommand

Inherits:
DownloadCommand
  • Object
show all
Defined in:
lib/hammer_cli_foreman/report_template.rb

Instance Method Summary collapse

Methods inherited from DownloadCommand

command_name, #execute, #request_options

Instance Method Details

#default_filenameObject



156
157
158
# File 'lib/hammer_cli_foreman/report_template.rb', line 156

def default_filename
  "Report Template-#{Time.new.strftime("%Y-%m-%d")}.txt"
end

#saved_response_message(filepath) ⇒ Object



160
161
162
# File 'lib/hammer_cli_foreman/report_template.rb', line 160

def saved_response_message(filepath)
  _("The report template has been saved to %{path}.") % { path: filepath }
end