bcome 0.4.0 → 0.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6679955d918e9393a9ec586ca27efefb93877575
4
- data.tar.gz: 0edac73427d8221c6882854a6dfa5f6990f63aa6
3
+ metadata.gz: 391c30036acc6805542513ea6b230e87a4fe0ef5
4
+ data.tar.gz: 5ccd09087b73458c84d96d848387d0a40fc9e8ad
5
5
  SHA512:
6
- metadata.gz: 21d4e826fbaf8c9b1467766eeb704c0af00942893ee10b29fb7049d4948471a96d4155d756b7c07a7f19349f4abd8faf349d7f9417f8d7174e9cd8e5d7d6683c
7
- data.tar.gz: e0c1972cb89cc5ace8ccf739d2301825cc120f6cbc098b71e89497d5e3c6d688eca63521479bf1e06c27f64936264fa9290f3eabe3fc3f16d55a4df7c4e8c46e
6
+ metadata.gz: dfcb18cf3e673189a9d19daae240dc2e4943a27c69c1c7d7c4ac8f40ec362f36348d5ffd95097858fe46a862898fafe711c5551c404df9016c3be29dc4dcc06d
7
+ data.tar.gz: b2e0175e9e9a6ff23a1644024ad2f473e680911bed014e3c66d5cffd6587ca2c74091ace88bb36a81bbd6e2386d9aa208ac211c30b457e41cecdb159c7465ae7
data/lib/bcome/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Bcome
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bcome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guillaume Roderick (Webzakimbo)