cli_credentials 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cli_credentials.rb +7 -0
- data/lib/cli_credentials/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5498356a1575558490b73d9ee5d0fd56ea90179
|
4
|
+
data.tar.gz: 459546eeba8d52f0eb56e9ad00782e21fe6676c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c65bdea888d170e41c1726f3b46765dacaf6c8b5dc310414f812e40c2ad42538ab28c2da9d795b8d3a27aa908d66c04446a4b3f0425a4b88586876da6fca9faa
|
7
|
+
data.tar.gz: 42e8b881602a3d562fc71fcdc3495273546778ab100f3dad7cba08a0c09dc44748787d3f0a31391bf1d51e4b5c52380a256b260bcf2787e55884822350859ef6
|
data/lib/cli_credentials.rb
CHANGED
@@ -16,6 +16,13 @@ class CLICredentials
|
|
16
16
|
instance = self.new(username)
|
17
17
|
end
|
18
18
|
|
19
|
+
# Make sure we have all of the credentials
|
20
|
+
def get
|
21
|
+
username
|
22
|
+
password
|
23
|
+
self
|
24
|
+
end
|
25
|
+
|
19
26
|
def prompt_for_username
|
20
27
|
print "#{title.to_s + ' ' if title}Username: "
|
21
28
|
gets.chomp
|