bootic_cli 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bootic_cli/session.rb +17 -0
- data/lib/bootic_cli/version.rb +1 -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: d1cd34aea083a13ac4498a6ec83efabf0f4f389a
|
4
|
+
data.tar.gz: 2f5067838d8dccbcbf5eac65176ea9081c76674d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f749cc6438d2d8cb8d5088787bde841a458a48e5485fe9f59e2ec54b42ce028301bee5f5159ba6239ef57904dd9055bef67ae39a3992001493627df588c54ad
|
7
|
+
data.tar.gz: 8a6fb2e8535280f8db5175d834f1b4a4ca2a1cb1ff64a9c80b0eb38af7efd9b672cb29d38896e0d8c0e7e004844eb1ded66156c5cd776d01f2569dad659b10c9
|
data/lib/bootic_cli/session.rb
CHANGED
@@ -57,6 +57,22 @@ module BooticCli
|
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
|
+
# use a null store instead of the default memory store
|
61
|
+
# so in btc console we don't cache resources forever
|
62
|
+
class NullCacheStore
|
63
|
+
def read(key)
|
64
|
+
nil
|
65
|
+
end
|
66
|
+
|
67
|
+
def delete(key)
|
68
|
+
nil
|
69
|
+
end
|
70
|
+
|
71
|
+
def write(key, value)
|
72
|
+
value
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
60
76
|
def client
|
61
77
|
@client ||= begin
|
62
78
|
raise "First setup credentials and log in" unless ready?
|
@@ -65,6 +81,7 @@ module BooticCli
|
|
65
81
|
c.client_secret = config[:client_secret]
|
66
82
|
c.logger = Logger.new(STDOUT)
|
67
83
|
c.logging = false
|
84
|
+
c.cache_store = NullCacheStore.new
|
68
85
|
end
|
69
86
|
|
70
87
|
BooticClient.client(:authorized, access_token: config[:access_token]) do |new_token|
|
data/lib/bootic_cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootic_cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ismael Celis
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|