huginn_myq_agent 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/huginn_myq_agent/myq_agent.rb +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a14d1451dc070eb5e1519f50ff8825755cc970a8458f21fb32753bf15c7eae0
|
4
|
+
data.tar.gz: 93c72c7c6ea7cf3c16c5a8e236560171758f108e6b1e0809162e93f116e61796
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 702af78b42d4bdaf914e697e8a804614dc24a2b04c6da560d795a65024dd1ca3c9480e80fbfa8ea507431c685670e4efbe1890aad46daced2abd446ab2928ea0
|
7
|
+
data.tar.gz: 9c4897704759774aff5221d3a42a3c87acf625b8243d37c80f3e9011aafa87daf1cb82fdb26b6773d4cb019017ccbc75554e454485bd5fc8a68fefc9df00bb59
|
@@ -49,16 +49,16 @@ module Agents
|
|
49
49
|
def check
|
50
50
|
door = select_door(interpolated['door_name'])
|
51
51
|
if interpolated['action'] == 'status'
|
52
|
-
create_event :payload => status(door
|
52
|
+
create_event :payload => status(door)
|
53
53
|
elsif interpolated['action'] == 'open'
|
54
54
|
open_door(door)
|
55
|
-
create_event :payload => status(door
|
55
|
+
create_event :payload => status(door)
|
56
56
|
elsif interpolated['action'] == 'close'
|
57
57
|
close_door(door)
|
58
|
-
create_event :payload => status(door
|
58
|
+
create_event :payload => status(door)
|
59
59
|
elsif interpolated['action'] == 'toggle'
|
60
60
|
toggle_door(door)
|
61
|
-
create_event :payload => status(door
|
61
|
+
create_event :payload => status(door)
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
@@ -89,7 +89,7 @@ module Agents
|
|
89
89
|
door.open
|
90
90
|
end
|
91
91
|
|
92
|
-
def toggle_door(
|
92
|
+
def toggle_door(door)
|
93
93
|
if door.status == "open"
|
94
94
|
door.close
|
95
95
|
elsif door.status == "closed"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: huginn_myq_agent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jesse Gillies
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|