chapp 0.2.0 → 0.2.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/chapp/database.rb +2 -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: 6b7400e9bd5d239d51f9da4e50f7e59b750f0f4c
|
|
4
|
+
data.tar.gz: a640f10a2332bc0611be364cb5a4ddd2e051e0f9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fe6fedbfcd25cf6c73851ac1f623582ad9a2c6ab66127090dec2194b33f43ca02478aa57ec9baa27fdcb9f3c1804ecc66e94790cc7fb4c381d14c81a570c57af
|
|
7
|
+
data.tar.gz: 798403528dd3f6d8e31d21ae258bb4fb29c8e5c91767ae22801bd251c1ca3b2bcc743a2a5756f14cb835065f63c08bfbfa764a7d498146377be7bf5e68189443
|
data/lib/chapp/database.rb
CHANGED
|
@@ -93,7 +93,8 @@ module Chapp
|
|
|
93
93
|
app_instances = Array.new
|
|
94
94
|
|
|
95
95
|
query = Chef::Search::Query.new
|
|
96
|
-
|
|
96
|
+
# TODO Figure out how to get role name more appropriately
|
|
97
|
+
query.search(:node, "role:chapp_#{app_id}") do |node|
|
|
97
98
|
app_instances.push Chapp::AppInstance.new(app_id, node.name, node["fqdn"])
|
|
98
99
|
end
|
|
99
100
|
|