cyclid-client 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/cyclid +1 -0
- data/lib/cyclid/cli.rb +1 -0
- data/lib/cyclid/cli/admin.rb +1 -0
- data/lib/cyclid/cli/admin/organization.rb +2 -1
- data/lib/cyclid/cli/admin/user.rb +2 -1
- data/lib/cyclid/cli/job.rb +1 -0
- data/lib/cyclid/cli/organization.rb +1 -0
- data/lib/cyclid/cli/organization/config.rb +4 -2
- data/lib/cyclid/cli/organization/member.rb +2 -1
- data/lib/cyclid/cli/secret.rb +1 -0
- data/lib/cyclid/cli/stage.rb +1 -0
- data/lib/cyclid/cli/user.rb +1 -0
- data/lib/cyclid/client.rb +2 -1
- data/lib/cyclid/client/api.rb +1 -0
- data/lib/cyclid/client/api/basic.rb +1 -0
- data/lib/cyclid/client/api/hmac.rb +1 -0
- data/lib/cyclid/client/api/none.rb +1 -0
- data/lib/cyclid/client/api/token.rb +1 -0
- data/lib/cyclid/client/auth.rb +1 -0
- data/lib/cyclid/client/health.rb +1 -0
- data/lib/cyclid/client/job.rb +1 -0
- data/lib/cyclid/client/organization.rb +1 -0
- data/lib/cyclid/client/stage.rb +1 -0
- data/lib/cyclid/client/user.rb +1 -0
- data/lib/cyclid/config.rb +1 -0
- data/lib/cyclid/version.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e0ed4474b3e654888e5af98ce8651e7185c86c4
|
4
|
+
data.tar.gz: ec58a0848ac45a46b4958491b1da1b6dc90e5b89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b84d6e3bf1b4debc7848d9e75a5b311a361cd94ad5856c175619cdae694a7e456e2854d24a1abd2925bf9fa99121bd2fb9d0160e2386d7ef7efbbf760615c71
|
7
|
+
data.tar.gz: 825e9d50626ce58d262f8e3b01a17c0c59684467dc209b4538c000d676466f97ba8956b87501c33451aef267fe75f8e4773c282eab0ee810bf87357944d85c6a
|
data/bin/cyclid
CHANGED
data/lib/cyclid/cli.rb
CHANGED
data/lib/cyclid/cli/admin.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Copyright 2016 Liqwyd Ltd.
|
2
3
|
#
|
3
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -107,7 +108,7 @@ module Cyclid
|
|
107
108
|
delete = true
|
108
109
|
else
|
109
110
|
print "Delete organization #{name}: are you sure? (Y/n): ".colorize(:red)
|
110
|
-
delete = STDIN.getc.chr.casecmp('y')
|
111
|
+
delete = STDIN.getc.chr.casecmp('y').zero?
|
111
112
|
end
|
112
113
|
abort unless delete
|
113
114
|
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Copyright 2016 Liqwyd Ltd.
|
2
3
|
#
|
3
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -127,7 +128,7 @@ module Cyclid
|
|
127
128
|
delete = true
|
128
129
|
else
|
129
130
|
print "Delete user #{username}: are you sure? (Y/n): ".colorize(:red)
|
130
|
-
delete = STDIN.getc.chr.casecmp('y')
|
131
|
+
delete = STDIN.getc.chr.casecmp('y').zero?
|
131
132
|
end
|
132
133
|
abort unless delete
|
133
134
|
|
data/lib/cyclid/cli/job.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Copyright 2016 Liqwyd Ltd.
|
2
3
|
#
|
3
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -30,6 +31,9 @@ module Cyclid
|
|
30
31
|
when 'string', 'integer'
|
31
32
|
data = config[name] || 'Not set'
|
32
33
|
puts "#{setting['description']}: ".colorize(:cyan) + data
|
34
|
+
when 'password'
|
35
|
+
data = config[name] ? '*' * config[name].length : 'Not set'
|
36
|
+
puts "#{setting['description']}: ".colorize(:cyan) + data
|
33
37
|
when 'boolean'
|
34
38
|
data = config[name] || 'Not set'
|
35
39
|
puts "#{setting['description']}: ".colorize(:cyan) + (data ? 'true' : 'false')
|
@@ -55,8 +59,6 @@ module Cyclid
|
|
55
59
|
end
|
56
60
|
end
|
57
61
|
end
|
58
|
-
else
|
59
|
-
raise "unknown schema type #{type}"
|
60
62
|
end
|
61
63
|
end
|
62
64
|
rescue StandardError => ex
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Copyright 2016 Liqwyd Ltd.
|
2
3
|
#
|
3
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -110,7 +111,7 @@ module Cyclid
|
|
110
111
|
true
|
111
112
|
else
|
112
113
|
print "Remove user #{user}: are you sure? (Y/n): ".colorize(:red)
|
113
|
-
STDIN.getc.chr.casecmp('y')
|
114
|
+
STDIN.getc.chr.casecmp('y').zero?
|
114
115
|
end
|
115
116
|
end
|
116
117
|
end
|
data/lib/cyclid/cli/secret.rb
CHANGED
data/lib/cyclid/cli/stage.rb
CHANGED
data/lib/cyclid/cli/user.rb
CHANGED
data/lib/cyclid/client.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Copyright 2016 Liqwyd Ltd.
|
2
3
|
#
|
3
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -88,7 +89,7 @@ module Cyclid
|
|
88
89
|
path: path)
|
89
90
|
end
|
90
91
|
|
91
|
-
def method_missing(method, *args, &block)
|
92
|
+
def method_missing(method, *args, &block) # rubocop:disable Style/MethodMissing
|
92
93
|
@api.send(method, *args, &block)
|
93
94
|
end
|
94
95
|
end
|
data/lib/cyclid/client/api.rb
CHANGED
data/lib/cyclid/client/auth.rb
CHANGED
data/lib/cyclid/client/health.rb
CHANGED
data/lib/cyclid/client/job.rb
CHANGED
data/lib/cyclid/client/stage.rb
CHANGED
data/lib/cyclid/client/user.rb
CHANGED
data/lib/cyclid/config.rb
CHANGED
data/lib/cyclid/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cyclid-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kristian Van Der Vliet
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|