cloudspin-stack-rake 0.1.7 → 0.1.8
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/Gemfile +0 -1
- data/cloudspin-stack-rake.gemspec +0 -1
- data/lib/cloudspin/stack/rake/stack_task.rb +16 -11
- data/lib/cloudspin/stack/rake/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: 1b06d7f0e4dbbebad0ff2672d9b72dfa1bcb5ab584c133039187cadf2f8a04e7
|
|
4
|
+
data.tar.gz: 35f720b9508a91beb3e0f0e318c10dc27f1be6ec1551953bd9d795353d19fe15
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 53dc9ea26bdd630a0209bbd44834045adfa3699f43aed5a7ed92dea3787737b1eff3cb86b4d7f4319bcaac63815e1baf1f838b5adfef0160f1d059d94e8a8bab
|
|
7
|
+
data.tar.gz: 1f83a43409a666158ec61ec3c6d1b853fab48793b3a3503f3d90a07231d6da14fd664427c649fcbbcdcabcdabf561191e9dcfcf65f7891d66f3fd008f4f7f2c0
|
data/Gemfile
CHANGED
|
@@ -11,21 +11,26 @@ module Cloudspin
|
|
|
11
11
|
attr_reader :instance_folder
|
|
12
12
|
|
|
13
13
|
def initialize(id:, definition_folder: './src', instance_folder: '.')
|
|
14
|
-
@instance = Cloudspin::Stack::Instance.
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
@instance = Cloudspin::Stack::Instance.from_folder(
|
|
15
|
+
default_instance_configuration_files(instance_folder),
|
|
16
|
+
definition_folder: definition_folder,
|
|
17
|
+
backend_config: {},
|
|
18
|
+
working_folder: "#{instance_folder}/work",
|
|
19
|
+
statefile_folder: "#{instance_folder}/state"
|
|
18
20
|
)
|
|
19
|
-
@instance.add_config_from_yaml("#{instance_folder}/spin-default.yaml")
|
|
20
|
-
@instance.add_config_from_yaml("#{instance_folder}/stack-instance-default.yaml")
|
|
21
|
-
@instance.add_config_from_yaml("#{instance_folder}/stack-instance-defaults.yaml")
|
|
22
|
-
@instance.add_config_from_yaml("#{instance_folder}/spin-local.yaml")
|
|
23
|
-
@instance.add_config_from_yaml("#{instance_folder}/stack-instance-local.yaml")
|
|
24
|
-
@instance.add_parameter_values({ :instance_identifier => id })
|
|
25
|
-
|
|
26
21
|
define
|
|
27
22
|
end
|
|
28
23
|
|
|
24
|
+
def default_instance_configuration_files(instance_folder)
|
|
25
|
+
[
|
|
26
|
+
"#{instance_folder}/spin-default.yaml",
|
|
27
|
+
"#{instance_folder}/stack-instance-default.yaml",
|
|
28
|
+
"#{instance_folder}/stack-instance-defaults.yaml",
|
|
29
|
+
"#{instance_folder}/spin-local.yaml",
|
|
30
|
+
"#{instance_folder}/stack-instance-local.yaml"
|
|
31
|
+
]
|
|
32
|
+
end
|
|
33
|
+
|
|
29
34
|
def define
|
|
30
35
|
|
|
31
36
|
desc "Create or update stack #{@instance.id}"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cloudspin-stack-rake
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- 'kief '
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-09-
|
|
11
|
+
date: 2018-09-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cloudspin-stack
|