fastlyctl 1.0.16 → 1.0.17

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c53f586abe251025a9bd645fcf0ebffc7054424d09d9db8b114e7392e9568477
4
- data.tar.gz: bbe5746a703ce8c051e8cd98fa63405b6d33da3e77794ed5099d13b0acad5767
3
+ metadata.gz: 967a62f4948a70f5509ebd3909af631fddd0be60bf93a90998c4e1887c18b8d2
4
+ data.tar.gz: 5b0e01256cf4f8030cf92431bcbcfb835f6b7ada479db2e79c7068c3005043b8
5
5
  SHA512:
6
- metadata.gz: 1fb81e003390783de19f713bc6443272d9d84d03ded47c6a4a4aef0cf381724633e2524aeac22c3dfd8578cf91db42185da20daa74fede3189f24f3ffeb50daa
7
- data.tar.gz: 7d261f97f4ecd5f17958b1e6b5a323f6375561565771319a3ee35a9869e74b4d910ff4be01dacd721b31c73c7d4752651cdd61a40932ec1140085d1f6f99f329
6
+ metadata.gz: 71d9fc500521e22f6c1e5e1a9193c90016b4f94d11b3963496e011d08f689dacc07b7b2db01cebac7d3a18747365fa285a8b73f3c8912b07efaca80e85c50dcb
7
+ data.tar.gz: b8cab659f08e68f46b83fe43d8090aaa83b7645257c715cd8b5012a6106e729ccc213adc9f1fba5f2eb8a7dfc23675eef6eea64d3f65ce086c500ff9bfe9916d
@@ -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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module FastlyCTL
2
- VERSION = "1.0.16"
2
+ VERSION = "1.0.17"
3
3
  end
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.16
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-01-21 00:00:00.000000000 Z
11
+ date: 2020-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus