Class: SudoNeedPasswordChecker

Inherits:
Object
  • Object
show all
Defined in:
lib/procon_bypass_man/support/sudo_need_password_checker.rb

Class Method Summary collapse

Class Method Details

.execute!boolean

Returns falseならパスワードが必要.

Returns:

  • (boolean)

    falseならパスワードが必要



3
4
5
# File 'lib/procon_bypass_man/support/sudo_need_password_checker.rb', line 3

def self.execute!
  system('sudo -n true 2>/dev/null')
end