envirobly 1.4.1 → 1.5.1
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/envirobly/container_shell.rb +8 -10
- data/lib/envirobly/deployment.rb +4 -8
- data/lib/envirobly/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c97ca5914eef6af36136f7e0abfcc7370e1ed085fc8cddf2b80a141318ce44cd
|
4
|
+
data.tar.gz: 81dba64e23d95bd3a9727ae2be4ed9af7647596600160e68bb1df340c9a3a40d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cee99dc1623b120060f05439005b54f3eabccc09817d03138407b5053be461809473af16fb714a3cfba1564c75c11ee19410e19aa8f0f6177c7cc4280cba3dd1
|
7
|
+
data.tar.gz: a9fcd1f398730b370a8c43b75b046fdf6daa1030e88c45cfd0b8e09fb1edb93afa65dffcf03ed42d586dfcaa51ce0226a50c5636d971e23a7f5e61eb12cc1d9a
|
@@ -23,18 +23,16 @@ class Envirobly::ContainerShell
|
|
23
23
|
commit = Envirobly::Git::Commit.new "HEAD"
|
24
24
|
|
25
25
|
@params = {
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
service: { name: service_name },
|
33
|
-
instance: { slot: options.instance_slot || 0 }
|
26
|
+
account_id: options.account_id || Envirobly::Defaults::Account.new.id,
|
27
|
+
project_name: options.project_name || File.basename(Dir.pwd), # TODO: Extract into Defaults::ProjectName
|
28
|
+
project_id: options.project_id,
|
29
|
+
environ_name: options.environ_name || commit.current_branch,
|
30
|
+
service_name: service_name,
|
31
|
+
instance_slot: options.instance_slot || 0
|
34
32
|
}
|
35
33
|
|
36
34
|
if options.project_name.blank? && options.account_id.blank? && options.project_id.blank?
|
37
|
-
@params[:
|
35
|
+
@params[:project_id] = Envirobly::Defaults::Project.new.id
|
38
36
|
end
|
39
37
|
end
|
40
38
|
|
@@ -109,6 +107,6 @@ class Envirobly::ContainerShell
|
|
109
107
|
end
|
110
108
|
|
111
109
|
def user_and_host
|
112
|
-
sprintf USER_AND_HOST, connect_data.fetch("instance").fetch("
|
110
|
+
sprintf USER_AND_HOST, connect_data.fetch("instance").fetch("public_ipv6")
|
113
111
|
end
|
114
112
|
end
|
data/lib/envirobly/deployment.rb
CHANGED
@@ -30,14 +30,10 @@ class Envirobly::Deployment
|
|
30
30
|
end
|
31
31
|
|
32
32
|
@params = {
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
id: project_id,
|
38
|
-
name: project_name,
|
39
|
-
region:
|
40
|
-
},
|
33
|
+
account_id:,
|
34
|
+
project_id:,
|
35
|
+
project_name:,
|
36
|
+
region:,
|
41
37
|
deployment: {
|
42
38
|
environ_name:,
|
43
39
|
commit_ref: @commit.ref,
|
data/lib/envirobly/version.rb
CHANGED