Sha256: bd0c8f44bb8da1bfb9360c94acf5d5eb26a8d43b5dcf3809127846c077555680

Contents?: true

Size: 467 Bytes

Versions: 15

Compression:

Stored size: 467 Bytes

Contents

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

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

    if Security::InternetPassword.delete(:server => Cupertino::ProvisioningPortal::HOST)
      say_ok "Account credentials removed"
    else
      say_error "Error removing credentials"
    end
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
cupertino-1.4.0 ./lib/cupertino/provisioning_portal/commands/logout.rb
download-profiles-1.0.2 ./lib/download-profiles/provisioning_portal/commands/logout.rb
cupertino-1.3.4 ./lib/cupertino/provisioning_portal/commands/logout.rb
download-profiles-1.0.1 ./lib/download-profiles/provisioning_portal/commands/logout.rb
cupertino-1.3.3 ./lib/cupertino/provisioning_portal/commands/logout.rb
cupertino-1.3.2 ./lib/cupertino/provisioning_portal/commands/logout.rb
cupertino-1.3.1 ./lib/cupertino/provisioning_portal/commands/logout.rb
download-profiles-1.0.0 ./lib/download-profiles/provisioning_portal/commands/logout.rb
cupertino-1.3.0 ./lib/cupertino/provisioning_portal/commands/logout.rb
cupertino-1.2.4 ./lib/cupertino/provisioning_portal/commands/logout.rb
cupertino-1.2.3 ./lib/cupertino/provisioning_portal/commands/logout.rb
cupertino-1.2.2 ./lib/cupertino/provisioning_portal/commands/logout.rb
cupertino-1.2.1 ./lib/cupertino/provisioning_portal/commands/logout.rb
cupertino-1.2.0 ./lib/cupertino/provisioning_portal/commands/logout.rb
cupertino-1.1.2 ./lib/cupertino/provisioning_portal/commands/logout.rb