Sha256: a1878887770690c178b0a14ddfb6b595b506b4e2c42811828752ae458bc20b2c

Contents?: true

Size: 364 Bytes

Versions: 5

Compression:

Stored size: 364 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 Netrc.read[Cupertino::HOSTNAME]

    netrc = Netrc.read
    netrc.delete(Cupertino::HOSTNAME)
    netrc.save

    say_ok "Account credentials removed"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cupertino-0.4.0 ./lib/cupertino/provisioning_portal/commands/logout.rb
cupertino-0.3.3 ./lib/cupertino/provisioning_portal/commands/logout.rb
cupertino-0.3.2 ./lib/cupertino/provisioning_portal/commands/logout.rb
cupertino-0.3.1 ./lib/cupertino/provisioning_portal/commands/logout.rb
cupertino-0.3.0 ./lib/cupertino/provisioning_portal/commands/logout.rb