Class: RProgram::SudoTask

Inherits:
Task
  • Object
show all
Defined in:
lib/rprogram/sudo_task.rb

Overview

Represents the options for sudo.

Sudo options:

  • -A - sudo.ask_password
  • -b - sudo.background
  • -C - sudo.close_from
  • -E - sudo.preserve_env
  • -e - sudo.edit
  • -g - sudo.group
  • -H - sudo.home
  • -h - sudo.help
  • -i - sudo.simulate_initial_login
  • -k - sudo.kill
  • -K - sudo.sure_kill
  • -L - sudo.list_defaults
  • -l - sudo.list
  • -n - sudo.non_interactive
  • -P - sudo.preserve_group
  • -p - sudo.prompt
  • -r - sudo.role
  • -S - sudo.stdin
  • -s - sudo.shell
  • -t - sudo.type
  • -U - sudo.other_user
  • -u - sudo.user
  • -V - sudo.version
  • -v - sudo.validate

  • [command] - sudo.command

Since:

  • 0.3.0

Method Summary

Methods inherited from Task

arguments, #arguments, define_option, flag_namify, get_non_option, #get_non_option, #get_option, get_option, has_non_option?, #has_non_option?, has_option?, #has_option?, #initialize, #leading_non_options, long_option, non_option, non_options, #options, options, short_option, subtask, #tailing_non_options

Constructor Details

This class inherits a constructor from RProgram::Task