duse 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MGYyYjA4MDNiY2ZjMDRiN2ViNjNiNDIzZDY5YmM5MjdkMGQ2NzdjMw==
4
+ OWVhZjQ5OTdlOWMzYzkzYWM0MmMzMjg2OTRiMzhjODUwNTRmYjk4Yw==
5
5
  data.tar.gz: !binary |-
6
- OWFjY2ZmZDBlODY3ZDU5NWU4YWFjMjVhZDI1NmUyZDc3ODNmMTFjYQ==
6
+ NmZlYzI3ZTBmNTI1Y2EyNzA5MTlhNzAzYzYyM2MyZmFiMmE2ZjM3ZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NzBkYTk5MzRlMzBmMWNjNzAxNjhhNjU0N2MzNjMyOGNhMDBhMTA3NDA4MWUy
10
- ZjVkNDE5MmMzY2ViZTFjYWJlYjcxMWExZmIyZWRhMDA3MjYwYTQ4ZjllZmJi
11
- YmJiMzcxMGQ3MjhkMDYzMzA3NTQwNWExNzc5YTViMzc2OTUxNWM=
9
+ OGUxODdjM2MwNzRjNTU3ZmZkY2JiZjAxYzJiZGNkYzVhZDI4ODI5YTc3Y2Mw
10
+ N2U5Y2Q3MmRiMzFmNmRjM2NkNmYzYzg0ODAzYWMxYmUzYzM1ODk2ZDI3M2Nk
11
+ NjUxZjExY2JjMTI3YTFlNTc5NDQ2NDVmN2Q4YzU1NzgzNjljYWY=
12
12
  data.tar.gz: !binary |-
13
- Y2Q2MjEzY2YzYTJhOWY5NzNjMDM3ODliNmRkMTc2NmI3MzMyY2UwOGJhMTkw
14
- NzRiOWUxYzI5OTYwZTRiMzc2OGY2MTgzNjUxMjRhODI2ZjUwZmQyNGFhMTM4
15
- NTBjYWJjNWZkNzMwMjI1NjIyMDFlZDUwYjViOTQxNjAyZTFmNDA=
13
+ M2Y5Y2E3MTRkM2Q1ODExMGRiOWQ5ZjdmYTJmYTYxZjk2ZTQ4NGNmYjZhODZj
14
+ YTZjM2ViNDM4YzBiYzRlYjRkOWUyYzlmYmQxODJkYjU2NmRjNTY2OTM0MWQ2
15
+ NzQyOThkNWU3Yzc2N2Q3MGZkNGMxY2VlMzk0YjcyOGU5YmZmODE=
data/README.md CHANGED
@@ -24,34 +24,38 @@ To install the client simply install its ruby gem.
24
24
 
25
25
  Then you can explore the client with its help texts
26
26
 
27
- $ duse help
27
+ $ duse
28
+
28
29
  Usage: duse COMMAND ...
29
-
30
+
30
31
  Available commands:
31
-
32
+
33
+ account Manage your account
32
34
  config Configure the client
33
35
  help Displays help messages, such as this one
34
36
  login login to access and save secrets
35
37
  register Register a new account
36
38
  secret Save, retrieve and delete secrets
37
-
39
+ version print the client version
40
+
38
41
  run `duse help COMMAND` for more infos
39
42
 
40
43
  When you want to see the help texts for subcommands of e.g. secrets
41
44
 
42
- $ duse help secret
43
-
45
+ $ duse secret
46
+
44
47
  Save, retrieve and delete secrets
45
-
48
+
46
49
  Usage: duse secret COMMAND ...
47
-
50
+
48
51
  Available commands:
49
-
50
- save Save a new secret
52
+
53
+ add Save a new secret
51
54
  get Retrieve a secret
52
55
  list List all secrets you have access to
53
- delete Delete a secret
54
-
56
+ remove Delete a secret
57
+ update Save a new secret
58
+
55
59
  run `duse help secret COMMAND` for more infos
56
60
 
57
61
  Generally the cli will tell you if an action on your side is required. For
@@ -60,6 +64,60 @@ example when it needs to be configured and you are trying to login.
60
64
  $ duse login
61
65
  client not configured, run `duse config`
62
66
 
67
+ So configure it
68
+
69
+ $ duse config
70
+ Uri to the duse instance you want to use: https://myserver.io/
71
+
72
+ Let's register
73
+
74
+ $ duse register
75
+ Username: flower-pot
76
+ Email: fbranczyk@gmail.com
77
+ Password: xxxxxxxx
78
+ Confirm password: xxxxxxxx
79
+ 1. /Users/fredericbranczyk/.ssh/id_boot2docker
80
+ 2. /Users/fredericbranczyk/.ssh/id_rsa
81
+ 3. Generate a new one
82
+ 4. Let me choose it myself
83
+ Which private ssh-key do you want to use?
84
+ 3
85
+ Successfully created your account! An email to confirm it has been sent. Once confirmed you can login with "duse login"
86
+
87
+ Confirm the account according to the instructions in the email. Then login
88
+
89
+ $ duse login
90
+ Username: flower-pot
91
+ Password: xxxxxxxx
92
+ Successfully logged in!
93
+
94
+ Now that the client is configured and you're logged in the first secret can be
95
+ created
96
+
97
+ $ duse secret save
98
+ What do you want to call this secret? First Secret
99
+ Secret to save: test-secret
100
+ Do you want to share this secret?[Y/n] n
101
+ Secret successfully created!
102
+
103
+ Then list your secrets
104
+
105
+ $ duse secret list
106
+ 1: First Secret
107
+
108
+ Retrieve a secret
109
+
110
+ $ duse secret get 1
111
+
112
+ Name: First Secret
113
+ Secret: test-secret
114
+ Access: flower-pot, server
115
+
116
+ Or plain
117
+
118
+ $ duse secret get 1
119
+ test-secret
120
+
63
121
  The Library
64
122
  ===========
65
123
 
@@ -21,7 +21,7 @@ module Duse
21
21
  public_key: @key.public_key.to_pem
22
22
  )
23
23
  Duse::CLIConfig.new.save_private_key_for user, @key.to_pem
24
- success 'Successfully created your account! You can now login with "duse login"'
24
+ success 'Successfully created your account! An email to confirm it has been sent. Once confirmed you can login with "duse login"'
25
25
  end
26
26
 
27
27
  private
data/lib/duse/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Duse
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: duse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frederic Branczyk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-23 00:00:00.000000000 Z
11
+ date: 2015-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: highline