bcome 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bcome/version.rb +1 -1
- data/lib/orchestrator/loader.rb +4 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 391c30036acc6805542513ea6b230e87a4fe0ef5
|
4
|
+
data.tar.gz: 5ccd09087b73458c84d96d848387d0a40fc9e8ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfcb18cf3e673189a9d19daae240dc2e4943a27c69c1c7d7c4ac8f40ec362f36348d5ffd95097858fe46a862898fafe711c5551c404df9016c3be29dc4dcc06d
|
7
|
+
data.tar.gz: b2e0175e9e9a6ff23a1644024ad2f473e680911bed014e3c66d5cffd6587ca2c74091ace88bb36a81bbd6e2386d9aa208ac211c30b457e41cecdb159c7465ae7
|
data/lib/bcome/version.rb
CHANGED
data/lib/orchestrator/loader.rb
CHANGED
@@ -2,7 +2,6 @@ module Bcome::Orchestrator
|
|
2
2
|
class Loader
|
3
3
|
|
4
4
|
def initialize(machines, registry_for_context)
|
5
|
-
config_path = "#{Dir.pwd}/bcome/config/orchestration"
|
6
5
|
@recipes_path = "#{config_path}/recipes.yml"
|
7
6
|
@machine_targets_path = "#{config_path}/node_target_selectors.yml"
|
8
7
|
@direct_commands_path = "#{config_path}/direct_command_sets.yml"
|
@@ -10,6 +9,10 @@ module Bcome::Orchestrator
|
|
10
9
|
@registry_for_context = registry_for_context
|
11
10
|
end
|
12
11
|
|
12
|
+
def config_path
|
13
|
+
defined?(::OrchestratorResource::CONFIG_PATH) ? ::OrchestratorResource::CONFIG_PATH : "#{Dir.pwd}/bcome/config/orchestration"
|
14
|
+
end
|
15
|
+
|
13
16
|
def recipes
|
14
17
|
@recipes ||= ::Bcome::Orchestrator::Factory.create_recipes_from_json(do_load_recipes, node_targets, @machines, direct_commands)
|
15
18
|
end
|