cloudspin-stack 0.1.27 → 0.1.28
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88fb621c2f7c450bdc5ef3a7a5839be1b1527d0fc15002681eceea7fbd9cb13b
|
4
|
+
data.tar.gz: 613787faf6aac87b43b211ada886b1bb2e3a70d381ca95270b77ddb01f55cdb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6100cad6cc348bbd2d0e6e984de8ca3084315577c575492b0f728889351e5b30e5ebb2740a12232a045cad0d213602457b8e4fb7ca1e4311be23e1c4b14ba179
|
7
|
+
data.tar.gz: 5f93ac2be468575471bd0edccaecb62e52b301d7be9fefc2439f88f5000af0308ab4868818f31f41560b90e6d5cf3ef8899017844444db17478c0c26aa368b51
|
data/lib/cloudspin/cli.rb
CHANGED
@@ -70,9 +70,10 @@ module Cloudspin
|
|
70
70
|
no_commands do
|
71
71
|
|
72
72
|
def instance
|
73
|
-
Cloudspin::Stack::Instance.
|
73
|
+
Cloudspin::Stack::Instance.from_folder(
|
74
74
|
instance_configuration_files,
|
75
|
-
|
75
|
+
definition_location: './src',
|
76
|
+
base_folder: '.',
|
76
77
|
base_working_folder: './work'
|
77
78
|
)
|
78
79
|
end
|
@@ -28,12 +28,14 @@ module Cloudspin
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def self.from_location(definition_location, definition_cache_folder: '.cloudspin/definitions')
|
31
|
+
# puts "DEBUG: get definition from location #{definition_location}"
|
31
32
|
if RemoteDefinition.is_remote?(definition_location)
|
32
|
-
# puts "
|
33
|
-
|
33
|
+
# puts "DEBUG: Downloading remote stack definition"
|
34
|
+
local_definition_folder = RemoteDefinition.new(definition_location).fetch(definition_cache_folder)
|
35
|
+
from_file("#{local_definition_folder}/stack-definition.yaml", from_remote: true)
|
34
36
|
else
|
35
|
-
# puts "
|
36
|
-
from_file(definition_location)
|
37
|
+
# puts "DEBUG: Using local stack definition source: #{definition_location}/stack-definition.yaml"
|
38
|
+
from_file("#{definition_location}/stack-definition.yaml")
|
37
39
|
end
|
38
40
|
end
|
39
41
|
|
@@ -68,7 +68,7 @@ module Cloudspin
|
|
68
68
|
}
|
69
69
|
}
|
70
70
|
raise MissingStackDefinitionConfigurationFileError unless File.exists? "#{where_to_put_it}/#{folder_name}/stack-definition.yaml"
|
71
|
-
"#{where_to_put_it}/#{folder_name}
|
71
|
+
"#{where_to_put_it}/#{folder_name}"
|
72
72
|
end
|
73
73
|
|
74
74
|
def clear_folder(folder_to_clear)
|