cli_credentials 0.0.1 → 0.0.2
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 +3 -3
- 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: 61daa1ed1226d3f9d13c09ddf99a83dabf6be5fc
|
4
|
+
data.tar.gz: 68ac7661610345ae26d359536284dbb75733eec0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1639cb370293c476e206dd1af5a5eed2d69e18a7d438a1fbca35e663fbec7bec64b622bf8e8003f9a81b5fe335558e661360da4f66fead7e896698b17da30f4d
|
7
|
+
data.tar.gz: 7fad4d3f8d600252f93b5601171036ad56ab7404844ce7036db211e77a605104b2606c69959ff6bd21b1034fa857102b3407ce73afd5d16297c4eb742b8cb62e
|
data/lib/cli_credentials.rb
CHANGED
@@ -6,9 +6,9 @@ require 'io/console'
|
|
6
6
|
class CLICredentials
|
7
7
|
attr_reader :title
|
8
8
|
|
9
|
-
def initialize(
|
10
|
-
@username = username
|
11
|
-
@title
|
9
|
+
def initialize(opts = {})
|
10
|
+
@username = opts[:username] if opts[:username]
|
11
|
+
@title = opts[:title] if opts[:title]
|
12
12
|
end
|
13
13
|
|
14
14
|
# Semantically nicer equivalent to new
|