Sha256: dafa56e0a3c8a45976577c5e1768fad880056f5fa64863a22befc0fdcb89e454

Contents?: true

Size: 466 Bytes

Versions: 10

Compression:

Stored size: 466 Bytes

Contents

command :login do |c|
  c.syntax = 'ios login'
  c.summary = 'Save account credentials'
  c.description = ''

  c.action do |args, options|
    say_warning "You are already authenticated" if Security::InternetPassword.find(:server => Cupertino::ProvisioningPortal::HOST)

    user = ask "Username:"
    pass = password "Password:"

    Security::InternetPassword.add(Cupertino::ProvisioningPortal::HOST, user, pass)

    say_ok "Account credentials saved"
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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