ubiquity 0.0.5 → 0.0.6
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 +8 -8
- data/README.md +10 -3
- data/lib/ubiquity/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
ZWI4MmU4OGFiNzIyNWM0NmZjMzAyMDQ4NzU3NDViZTZjNjY5OGVhMA==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
NDVjZjA5ZDM0NThkYjNkYzhlYTI4NDc2OGI5YzY2YzYzNjJhZjc3MA==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
OGFkZWUzZmFlZDM5Yzk4ZDBlNzlmZDliN2M1NDBiZTU0MGYyY2FhYjg1NzI0
|
|
10
|
+
Mzk0MDZhMGUxYWY3NDYxMjJkNTE2OGQzMDhhN2E3YWE1ZGRhYzA3ODcxNDBl
|
|
11
|
+
NWM3NzY0MTYxN2NhZTJhMmZhZDZmNTdlNjJmOWE5NTgwMmUwYTA=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
YjViNjIzOGQwNDc1N2E0NDIzZmM0Njc3NWNlMzU0Y2Q1NWUyOTNiYTM2MGJk
|
|
14
|
+
NjJjYjA4NTI4ZDg5ZmIzYjRhOTc3NTBiOWZjMzA3YjFiZTU0ODIzYzQ2ZTdk
|
|
15
|
+
YWEzMmU2MmFkZTNkZmM5Njc0OTFjZWNjMmY0ZTVkOTNmZDAxNzc=
|
data/README.md
CHANGED
|
@@ -15,11 +15,16 @@ node2:
|
|
|
15
15
|
|
|
16
16
|
on third machine (your lap):
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
|
|
19
|
+
#!/usr/bin/env ruby
|
|
20
|
+
|
|
21
|
+
require 'ubiquity'
|
|
22
|
+
|
|
23
|
+
node1 = Ubiquity::Client.new '172.17.0.15'
|
|
24
|
+
node2 = Ubiquity::Client.new '172.17.0.16'
|
|
20
25
|
|
|
21
26
|
node2.on "event" do
|
|
22
|
-
|
|
27
|
+
puts "event was triggered"
|
|
23
28
|
end
|
|
24
29
|
|
|
25
30
|
node1.exec do |scope|
|
|
@@ -32,6 +37,8 @@ on third machine (your lap):
|
|
|
32
37
|
notify "event"
|
|
33
38
|
end
|
|
34
39
|
|
|
40
|
+
sleep 10
|
|
41
|
+
|
|
35
42
|
## License
|
|
36
43
|
|
|
37
44
|
[MIT License](https://github.com/lucacervasio/ubiquity/blob/master/LICENSE) © Luca Cervasio
|
data/lib/ubiquity/version.rb
CHANGED