Project

General

Profile

« Previous | Next » 

Revision 6498291e

Added by Thomas McKay over 7 years ago

fixes #16880 - add --search option to export

View differences:

lib/hammer_cli_csv/job_templates.rb
csv << [NAME, ORGANIZATIONS, LOCATIONS, DESCRIPTION, JOB, PROVIDER, SNIPPET, TEMPLATE,
INPUT_NAME, INPUT_DESCRIPTION, INPUT_REQUIRED, INPUT_TYPE, INPUT_PARAMETERS]
@api.resource(:job_templates).call(:index, {
:per_page => 999999
:per_page => 999999,
:search => option_search
})['results'].each do |template_id|
template = @api.resource(:job_templates).call(:show, {:id => template_id['id']})
next if template['locked']

Also available in: Unified diff