cloudenv-hq 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/cloudenv-hq.gemspec +1 -1
- data/lib/cloudenv-hq.rb +6 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b5dd3d415383867dfcd30c58d3e67da659f42ef5f2d5148a4d126b12afb046b
|
4
|
+
data.tar.gz: 57507d4f73d276419d3cacc39e9a5541f778a9a938d4a23aeabeb826ea82fb65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abdd25d1c92d5a6d77f25612b1c9c392fd402c56f11ab67133e8947e6e7decf07714dd2121f3fe79083765b1fe367d00e90ab3b2d0b896f07a1ee632a1301b6d
|
7
|
+
data.tar.gz: b055d7ead49fed1fe41d8818351b2d2933c0f3621cd4dc673638a81abe8354ca89520a5abed276eaae3ca855c22300bc610c9168b51c0699e4603758f72f76c5
|
data/cloudenv-hq.gemspec
CHANGED
data/lib/cloudenv-hq.rb
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
require "pathname"
|
2
2
|
require "dotenv"
|
3
3
|
require "tempfile"
|
4
|
+
require "yaml"
|
4
5
|
|
5
6
|
class CloudenvHQ
|
6
|
-
VERSION = "0.
|
7
|
+
VERSION = "0.2.0".freeze
|
7
8
|
|
8
9
|
API_HOST = "https://app.cloudenv.com".freeze
|
9
10
|
READ_PATH = "/api/v1/envs".freeze
|
@@ -19,7 +20,10 @@ class CloudenvHQ
|
|
19
20
|
end
|
20
21
|
|
21
22
|
if File.exists?(@secret_key)
|
22
|
-
|
23
|
+
data = YAML.load(IO.read(@secret_key))
|
24
|
+
|
25
|
+
@app = data["slug"]
|
26
|
+
@secret_key = data["secret-key"]
|
23
27
|
|
24
28
|
if @environment
|
25
29
|
data = `curl -s -H "Authorization: Bearer #{@bearer}" "https://app.cloudenv.com/api/v1/envs?name=#{@app}&environment=#{@environment}&version=#{VERSION}&lang=ruby" | openssl enc -a -aes-256-cbc -md sha512 -d -pass pass:"#{@secret_key}" 2> /dev/null`
|
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudenv-hq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lucas Carlson
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2020-10-10 00:00:00.000000000 Z
|
@@ -84,7 +84,7 @@ homepage: https://github.com/cloudenvhq/cloudenv-ruby
|
|
84
84
|
licenses:
|
85
85
|
- MIT
|
86
86
|
metadata: {}
|
87
|
-
post_install_message:
|
87
|
+
post_install_message:
|
88
88
|
rdoc_options: []
|
89
89
|
require_paths:
|
90
90
|
- lib
|
@@ -99,8 +99,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
99
|
- !ruby/object:Gem::Version
|
100
100
|
version: '0'
|
101
101
|
requirements: []
|
102
|
-
rubygems_version: 3.
|
103
|
-
signing_key:
|
102
|
+
rubygems_version: 3.0.3
|
103
|
+
signing_key:
|
104
104
|
specification_version: 4
|
105
105
|
summary: Keep your ENV vars synced between your team members
|
106
106
|
test_files: []
|