Class: SudoNeedPasswordChecker
- Inherits:
-
Object
- Object
- SudoNeedPasswordChecker
- Defined in:
- lib/procon_bypass_man/support/sudo_need_password_checker.rb
Class Method Summary collapse
-
.execute! ⇒ boolean
Falseならパスワードが必要.
Class Method Details
.execute! ⇒ boolean
Returns 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 |