Class: CommandMapper::Sudo

Inherits:
Command
  • Object
show all
Defined in:
lib/command_mapper/sudo.rb

Overview

Represents the sudo command.

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

Instance Attribute Summary

Attributes inherited from Command

#command_env, #command_name, #command_path, #command_subcommand

Method Summary

Methods inherited from Command

#[], #[]=, argument, arguments, capture, #capture_command, command, #command_argv, command_name, #command_string, has_argument?, has_option?, has_subcommand?, #initialize, option, options, popen, #popen_command, run, #run_command, spawn, #spawn_command, subcommand, subcommands, sudo, #sudo_command, #to_a, #to_s

Methods included from Types

Type

Constructor Details

This class inherits a constructor from CommandMapper::Command