Sha256: 354d2ff6ff1e0f5cb19b1b3de277506ee5b888df341133d64b62895a2a53fff4
Contents?: true
Size: 819 Bytes
Versions: 3
Compression:
Stored size: 819 Bytes
Contents
# Monkey Patch Commander::UI to alias password to avoid conflicts module Commander::UI alias :pw :password end class String include Term::ANSIColor end module Cupertino module ProvisioningPortal module Helpers def agent unless @agent @agent = Cupertino::ProvisioningPortal::Agent.new @agent.instance_eval do def username @username ||= ask "Username:" end def password @password ||= pw "Password:" end def team teams = page.form_with(:name => 'saveTeamSelection').field_with(:name => 'memberDisplayId').options.collect(&:text) @team ||= choose "Select a team:", *teams end end end @agent end end end end
Version data entries
3 entries across 3 versions & 1 rubygems