armrest 0.1.3 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/armrest/api/auth/cli.rb +6 -4
- data/lib/armrest/auth.rb +0 -1
- data/lib/armrest/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c137816b7461aff9f3a2c36d66915bf8d71185114157153b794270699959dad
|
4
|
+
data.tar.gz: 5c25cb03cbff31c49938d9c6f20e699f79b049a477a27022450676166d052b46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51d2232a17b2436f9efc351dfbc7fc79bb6cadde9ae355201ed7296198bad7e98f4dc517134523ded0dab8a10b113e25edd2230fad069b9db0d9fa9dda6dd02b
|
7
|
+
data.tar.gz: 2c70cb22c78b87031d48a862afb4850c160084bf66cf196b9084240c1a78cb239486de88b011f5ac4c5e2f4b785dd51447734b9522b1064645a8c2e34b826db9
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,9 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
|
5
5
|
|
6
|
+
## [0.2.0] - 2023-12-21
|
7
|
+
- [#5](https://github.com/boltops-tools/armrest/pull/5) fix cli auth
|
8
|
+
|
6
9
|
## [0.1.3] - 2022-05-03
|
7
10
|
- [#1](https://github.com/boltops-tools/armrest/pull/1) remove camelize
|
8
11
|
|
data/lib/armrest/api/auth/cli.rb
CHANGED
@@ -25,12 +25,14 @@ module Armrest::Api::Auth
|
|
25
25
|
# Looks like az account get-access-token caches the toke in ~/.azure/accessTokens.json
|
26
26
|
# and will update it only when it expires. So dont think we need to handle caching
|
27
27
|
def get_access_token
|
28
|
-
command = "az account get-access-token -o json
|
28
|
+
command = "az account get-access-token -o json"
|
29
29
|
logger.debug "command: #{command}"
|
30
30
|
out = `#{command}`
|
31
|
-
|
32
|
-
|
33
|
-
|
31
|
+
if $?.success?
|
32
|
+
JSON.load(out)
|
33
|
+
else
|
34
|
+
raise CliError, 'Error acquiring token from the Azure az CLI'
|
35
|
+
end
|
34
36
|
end
|
35
37
|
end
|
36
38
|
end
|
data/lib/armrest/auth.rb
CHANGED
data/lib/armrest/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: armrest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -272,7 +272,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
272
272
|
- !ruby/object:Gem::Version
|
273
273
|
version: '0'
|
274
274
|
requirements: []
|
275
|
-
rubygems_version: 3.
|
275
|
+
rubygems_version: 3.4.20
|
276
276
|
signing_key:
|
277
277
|
specification_version: 4
|
278
278
|
summary: Ruby Azure REST API Library
|