Class: XcodeInstaller::Logout
- Inherits:
-
Object
- Object
- XcodeInstaller::Logout
- Defined in:
- lib/xcode-installer/logout.rb
Instance Method Summary collapse
Instance Method Details
#action(args, options) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/xcode-installer/logout.rb', line 8 def action(args, ) say_error "You are not authenticated" and abort unless Security::InternetPassword.find(:server => XcodeInstaller::AppleDeveloperCenter::HOST) Security::InternetPassword.delete(:server => XcodeInstaller::AppleDeveloperCenter::HOST) say_ok "Account credentials removed" end |