Class: ForemanAdmin::TaskExportCommand
- Inherits:
-
ExternalCommand
- Object
- Clamp::Command
- Command
- ExternalCommand
- ForemanAdmin::TaskExportCommand
- Defined in:
- lib/foreman_admin/task_export.rb
Instance Method Summary collapse
Methods inherited from ExternalCommand
#execute, #external_invocation, external_invocation
Methods inherited from Command
command_name, #command_name, description, #description, #execute
Instance Method Details
#external_command ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/foreman_admin/task_export.rb', line 12 def external_command args = [] args << 'tasks=all' if all? args << "export=#{export_file}" if export_file args.unshift(external_invocation) args.join(' ') end |