fastlyctl 1.0.16 → 1.0.17
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 +4 -4
- data/lib/fastlyctl.rb +1 -1
- data/lib/fastlyctl/cli.rb +1 -1
- data/lib/fastlyctl/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 967a62f4948a70f5509ebd3909af631fddd0be60bf93a90998c4e1887c18b8d2
|
|
4
|
+
data.tar.gz: 5b0e01256cf4f8030cf92431bcbcfb835f6b7ada479db2e79c7068c3005043b8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 71d9fc500521e22f6c1e5e1a9193c90016b4f94d11b3963496e011d08f689dacc07b7b2db01cebac7d3a18747365fa285a8b73f3c8912b07efaca80e85c50dcb
|
|
7
|
+
data.tar.gz: b8cab659f08e68f46b83fe43d8090aaa83b7645257c715cd8b5012a6106e729ccc213adc9f1fba5f2eb8a7dfc23675eef6eea64d3f65ce086c500ff9bfe9916d
|
data/lib/fastlyctl.rb
CHANGED
|
@@ -26,5 +26,5 @@ module FastlyCTL
|
|
|
26
26
|
|
|
27
27
|
Cookies = File.exist?(FastlyCTL::COOKIE_JAR) ? JSON.parse(File.read(FastlyCTL::COOKIE_JAR)) : {}
|
|
28
28
|
# Don't allow header splitting with the key
|
|
29
|
-
Token = File.exist?(FastlyCTL::TOKEN_FILE) ? File.read(FastlyCTL::TOKEN_FILE) : false
|
|
29
|
+
Token = File.exist?(FastlyCTL::TOKEN_FILE) ? File.read(FastlyCTL::TOKEN_FILE) : (ENV['FASTLYCLI_TOKEN'] ? ENV['FASTLYCLI_TOKEN'] : false)
|
|
30
30
|
end
|
data/lib/fastlyctl/cli.rb
CHANGED
|
@@ -25,7 +25,7 @@ module FastlyCTL
|
|
|
25
25
|
class_option :debug, :desc => 'Enabled debug mode output'
|
|
26
26
|
|
|
27
27
|
def initialize(a,b,c)
|
|
28
|
-
unless File.exist?(FastlyCTL::TOKEN_FILE)
|
|
28
|
+
unless File.exist?(FastlyCTL::TOKEN_FILE) || ENV['FASTLYCLI_TOKEN']
|
|
29
29
|
if yes?("Unable to locate API token. Would you like to login first?")
|
|
30
30
|
self.login
|
|
31
31
|
end
|
data/lib/fastlyctl/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fastlyctl
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.17
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stephen Basile
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-03-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|