pampa 2.0.7 → 2.0.9
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/pampa.rb +13 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad3879f199bd25c70d8813a8f6e9ee35392eb53806efb6501ac170c9032e9f76
|
4
|
+
data.tar.gz: 81b3dff09c975dd450e992d99f79e2a07ab5207c5a1ccf51ac461cfdae244bf3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0180f41fd431073ee8a401889926339fa71fedf8b7472d7a1a08f237b25623ca23ddb047c80446593394beaf629782ccc1f0ceab38dc7e29716fd0e774ba10f2'
|
7
|
+
data.tar.gz: b7e672e0b09709f89541dffad2f6a420bebdffc8e17733e17b67becfb4334c415b465e65662175b5482473cc0bbfaecfe5adece05c5392a6075930b271d2e382
|
data/lib/pampa.rb
CHANGED
@@ -7,6 +7,8 @@ require 'simple_cloud_logging'
|
|
7
7
|
|
8
8
|
module BlackStack
|
9
9
|
module Pampa
|
10
|
+
# activate this flag if you want to add pampa nodes to blackstack-deployer.
|
11
|
+
@@integrate_with_blackstack_deployer = false
|
10
12
|
# arrays of workers, nodes, and jobs.
|
11
13
|
@@nodes = []
|
12
14
|
@@jobs = []
|
@@ -31,6 +33,15 @@ module BlackStack
|
|
31
33
|
@@logger = l
|
32
34
|
end
|
33
35
|
|
36
|
+
# @@integrate_with_blackstack_deployer
|
37
|
+
def self.integrate_with_blackstack_deployer()
|
38
|
+
@@integrate_with_blackstack_deployer
|
39
|
+
end
|
40
|
+
|
41
|
+
def self.set_integrate_with_blackstack_deployer(b)
|
42
|
+
@@integrate_with_blackstack_deployer = b
|
43
|
+
end
|
44
|
+
|
34
45
|
# return the log filename.
|
35
46
|
def self.log_filename()
|
36
47
|
@@log_filename
|
@@ -49,8 +60,8 @@ module BlackStack
|
|
49
60
|
# add a node to the cluster.
|
50
61
|
def self.add_node(h)
|
51
62
|
@@nodes << BlackStack::Pampa::Node.new(h)
|
52
|
-
# add to deployer
|
53
|
-
BlackStack::Deployer.add_node(h)
|
63
|
+
# add to deployer
|
64
|
+
BlackStack::Deployer.add_node(h) if @@integrate_with_blackstack_deployer
|
54
65
|
end # def self.add_node(h)
|
55
66
|
|
56
67
|
# add an array of nodes to the cluster.
|