Sha256: a6195bc7798852294907ecffcb1a3964d5c01a8ea10beb981b80aa3f10826a16
Contents?: true
Size: 768 Bytes
Versions: 5
Compression:
Stored size: 768 Bytes
Contents
#!/usr/bin/env ruby require_relative "../lib/amazon_auth" require 'highline/import' domain = ask("Enter your amazon domain: ") { |q| q.echo = true; q.default = AmazonInfo.domain } login = ask("Enter your #{domain} username: ") { |q| q.echo = true } passwd = ask("Enter your #{domain} password: ") { |q| q.echo = "*" } salt = ask("Enter your salt: ") { |q| q.default = AmazonAuth::Converter.default_salt; q.echo = true } raise "Empty login or password" if login.to_s.size == 0 || passwd.to_s.size == 0 converter = AmazonAuth::Converter.new(salt) puts "Put the following lines in .env" puts puts "AMAZON_DOMAIN=#{domain}" puts "AMAZON_USERNAME_CODE=#{converter.encode(login)}" puts "AMAZON_PASSWORD_CODE=#{converter.encode(passwd)}" puts "AMAZON_CODE_SALT=#{salt}"
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
amazon_auth-0.8.0 | exe/amazon_auth |
amazon_auth-0.7.0 | exe/amazon_auth |
amazon_auth-0.6.0 | exe/amazon_auth |
amazon_auth-0.5.0 | exe/amazon_auth |
amazon_auth-0.4.6 | exe/amazon_auth |