class ForemanAdmin::DebugCommand

Constants

NO_UPLOAD_RESPONSE
UPLOAD_RESPONSE

Public Instance Methods

external_command() click to toggle source
# File lib/foreman_admin/debug.rb, line 42
def external_command
  args = []
  args << '-d' << "'#{directory}'" if directory
  args << '-g' unless generic?
  args << '-a' unless tarball?
  args << '-m' << max_lines if max_lines
  args << '-j' << "'#{filter_program}'" if filter_program
  args << '-p' if password_patterns?
  args << '-q' if quiet?
  args << '-v' if verbose?
  args << '-u' if upload?

  args.unshift(external_invocation)
  args.join(' ')
end