Class: HammerCLIForeman::ReportTemplate::GenerateCommand

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, #saved_response_message

Instance Method Details

#default_filenameObject



69
70
71
# File 'lib/hammer_cli_foreman/report_template.rb', line 69

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

#request_paramsObject



73
74
75
76
77
# File 'lib/hammer_cli_foreman/report_template.rb', line 73

def request_params
  params = super
  params['input_values'] = option_inputs || {}
  params
end