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