Sha256: 7394b609a847ee499f9262716660d207f49e7bce9f77972584871e3ef58b09ac

Contents?: true

Size: 434 Bytes

Versions: 6

Compression:

Stored size: 434 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::HOSTNAME)

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

    Security::InternetPassword.add(Cupertino::HOSTNAME, user, pass)

    say_ok "Account credentials saved"
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cupertino-0.7.1 ./lib/cupertino/provisioning_portal/commands/login.rb
cupertino-0.7.0 ./lib/cupertino/provisioning_portal/commands/login.rb
cupertino-0.6.1 ./lib/cupertino/provisioning_portal/commands/login.rb
cupertino-0.6.0 ./lib/cupertino/provisioning_portal/commands/login.rb
cupertino-0.5.1 ./lib/cupertino/provisioning_portal/commands/login.rb
cupertino-0.5.0 ./lib/cupertino/provisioning_portal/commands/login.rb