savant-echo 1.0.1 → 1.0.4
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/bin/habridge/com.habridge.plist +1 -1
- data/bin/habridge/{ha-bridge-3.5.1.jar → ha-bridge.jar} +0 -0
- data/bin/src/Savant.rb +11 -11
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7731edbd6b588d210341dc5011e1254df24b9927
|
|
4
|
+
data.tar.gz: da13adc92790f107e252b08c0df212a9f4079375
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0bdf3815c14962968b1da4494fb06d06118aa63c6552e7f3e6bfaa772bdba555ce4ea1322f7f8de05ac27ae39e593c5cba34a5c92e32a8ef30e3e90edf442d3b
|
|
7
|
+
data.tar.gz: 3ebaa6ad4579da36b8cfacc35fe919ecbfe455bb6c76401e1ac273761210ea3dcb79965f60296ca5c3592ced9a318e362c5a075fd92883698189803b148891b9
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<string>java</string>
|
|
10
10
|
<string>-jar</string>
|
|
11
11
|
<string>-Dconfig.file=/Users/RPM/habridge/data/habridge.config</string>
|
|
12
|
-
<string>/Users/RPM/habridge/ha-bridge
|
|
12
|
+
<string>/Users/RPM/habridge/ha-bridge.jar</string>
|
|
13
13
|
</array>
|
|
14
14
|
<key>RunAtLoad</key>
|
|
15
15
|
<true/>
|
|
Binary file
|
data/bin/src/Savant.rb
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
# TO DO
|
|
2
|
-
|
|
3
|
-
# INSTALL PASSWORD PROMPT
|
|
4
|
-
# ADD MENU ITEM FOR DEBUG?
|
|
5
|
-
# PACKAGE INSTALLER
|
|
6
|
-
|
|
7
|
-
|
|
8
1
|
require 'rubygems'
|
|
9
2
|
require 'net/http'
|
|
10
3
|
require 'net/scp'
|
|
@@ -163,6 +156,7 @@ class Savant
|
|
|
163
156
|
ssh.exec!("mkdir -p /Users/RPM/habridge/")
|
|
164
157
|
path = File.expand_path("..",__dir__)
|
|
165
158
|
ssh.scp.upload!(path + "/habridge/", '/Users/RPM/', :recursive => true)
|
|
159
|
+
ssh.exec!("sed -i '' 's/192.168.77.40/" + @savantURL + "/' /Users/RPM/habridge/data/habridge.config")
|
|
166
160
|
ssh.exec!("mv /Users/RPM/habridge/com.habridge.plist /Users/RPM/Library/LaunchAgents/")
|
|
167
161
|
ssh.exec!("mv /Users/RPM/habridge/com.SCLI_HTTP.plist /Users/RPM/Library/LaunchAgents/")
|
|
168
162
|
@builder["installStatus"].label += "\nFiles copied!\n\nInstalling Homebrew on Host...this might take a minute.\n"
|
|
@@ -299,7 +293,7 @@ class Savant
|
|
|
299
293
|
end
|
|
300
294
|
end
|
|
301
295
|
|
|
302
|
-
##### Repeat install process in reverse for uninstall. BUG: Java uninstall can be flaky
|
|
296
|
+
##### Repeat install process in reverse for uninstall. BUG: Java uninstall can be flaky and might fail. #####
|
|
303
297
|
def buttonHelpUninstall__clicked(*argv)
|
|
304
298
|
if IPAddress.valid? @savantURL
|
|
305
299
|
if is_port_open?(@savantURL,"11263")
|
|
@@ -388,9 +382,9 @@ class Savant
|
|
|
388
382
|
ssh.loop
|
|
389
383
|
@builder["installStatus"].label += "\nRemoving Files..."
|
|
390
384
|
clear_events()
|
|
391
|
-
ssh.exec!("rm –
|
|
392
|
-
ssh.exec!("rm -f /
|
|
393
|
-
ssh.exec!("rm -f /
|
|
385
|
+
ssh.exec!("rm –R ~/habridge")
|
|
386
|
+
ssh.exec!("rm -f ~/Library/LaunchAgents/com.habridge.plist")
|
|
387
|
+
ssh.exec!("rm -f ~/Library/LaunchAgents/com.SCLI_HTTP.plist")
|
|
394
388
|
@builder["installStatus"].label += "Files removed!\n\n"
|
|
395
389
|
clear_events()
|
|
396
390
|
@builder["installStatus"].label += "Uninstallation complete.\n\n"
|
|
@@ -481,6 +475,12 @@ class Savant
|
|
|
481
475
|
|
|
482
476
|
end
|
|
483
477
|
|
|
478
|
+
##### #####
|
|
479
|
+
##### IP FIltering #####
|
|
480
|
+
##### (not yet implemented) #####
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
|
|
484
484
|
##### #####
|
|
485
485
|
##### Add command(s) to HA Bridge, first parsing for errors and needed parameters #####
|
|
486
486
|
##### #####
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: savant-echo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Corey Miller
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir:
|
|
10
10
|
- bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2017-
|
|
12
|
+
date: 2017-02-24 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: net-scp
|
|
@@ -1925,7 +1925,7 @@ files:
|
|
|
1925
1925
|
- bin/habridge/com.SCLI_HTTP.plist
|
|
1926
1926
|
- bin/habridge/com.habridge.plist
|
|
1927
1927
|
- bin/habridge/data/habridge.config
|
|
1928
|
-
- bin/habridge/ha-bridge
|
|
1928
|
+
- bin/habridge/ha-bridge.jar
|
|
1929
1929
|
- bin/packaging/vendor/ruby/2.2.0/gems/atk-3.1.0/ext/atk/extconf.rb
|
|
1930
1930
|
- bin/packaging/vendor/ruby/2.2.0/gems/atk-3.1.0/extconf.rb
|
|
1931
1931
|
- bin/packaging/vendor/ruby/2.2.0/gems/atk-3.1.0/lib/atk.rb
|