Sha256: 369e9cfb4149fa33a817e8628a0f60d246b4f93a16def27cf1cc2073d5bf6e77

Contents?: true

Size: 422 Bytes

Versions: 10

Compression:

Stored size: 422 Bytes

Contents

command :logout do |c|
  c.syntax = 'ios logout'
  c.summary = 'Remove account credentials'
  c.description = ''

  c.action do |args, options|
    say_error "You are not authenticated" and abort unless Security::InternetPassword.find(:server => Cupertino::ProvisioningPortal::HOST)

    Security::InternetPassword.delete(:server => Cupertino::ProvisioningPortal::HOST)

    say_ok "Account credentials removed"
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
cupertino-1.0.1 ./lib/cupertino/provisioning_portal/commands/logout.rb
cupertino-1.0.0 ./lib/cupertino/provisioning_portal/commands/logout.rb
cupertino-0.9.7 ./lib/cupertino/provisioning_portal/commands/logout.rb
cupertino-0.9.5 ./lib/cupertino/provisioning_portal/commands/logout.rb
cupertino-0.9.3 ./lib/cupertino/provisioning_portal/commands/logout.rb
cupertino-0.9.2 ./lib/cupertino/provisioning_portal/commands/logout.rb
cupertino-0.9.1 ./lib/cupertino/provisioning_portal/commands/logout.rb
cupertino-0.9.0 ./lib/cupertino/provisioning_portal/commands/logout.rb
cupertino-0.8.1 ./lib/cupertino/provisioning_portal/commands/logout.rb
cupertino-0.8.0 ./lib/cupertino/provisioning_portal/commands/logout.rb