savant-scenes 1.0.19 → 1.0.192
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/src/SceneManager.rb +20 -22
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dff21005684a2d13bd0e2b378b2158c740a412a7
|
4
|
+
data.tar.gz: e2bf40e61a851684e1074d975d4c8d2f66de243a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93d334c7bc3c66b1009405ef6bebc322a1e6d56e556ff507a028aa6ec67017d18effa6073ef85b899228ba5b44a43cb3263ebcb6ab853076bbbd90ccc07bca5c
|
7
|
+
data.tar.gz: efda00ff13108475b8022f1688b22a301511cd502673699997394d5ef16c4111c963b2497064fd320740a36f9870e5706d5bde94032a911394c6c75c6434faf3
|
data/bin/src/SceneManager.rb
CHANGED
@@ -107,7 +107,7 @@ class SceneManager
|
|
107
107
|
@scliBridge = "~/Applications/RacePointMedia/sclibridge "
|
108
108
|
@dis = "/Users/RPM/Library/Application Support/RacePointMedia/statusfiles/dis/dashboard.sqlite"
|
109
109
|
else
|
110
|
-
@scliBridge = "/usr/local/bin/sclibridge "
|
110
|
+
@scliBridge = "source ~/.zshrc && /usr/local/bin/sclibridge "
|
111
111
|
@dis = "GNUstep/Library/ApplicationSupport/RacePointMedia/statusfiles/dis/dashboard.sqlite"
|
112
112
|
end
|
113
113
|
end
|
@@ -128,6 +128,7 @@ class SceneManager
|
|
128
128
|
end
|
129
129
|
end
|
130
130
|
ssh.loop
|
131
|
+
#Use host name to query SoftwareVersion state from host
|
131
132
|
ssh.open_channel do |ch, success|
|
132
133
|
ch.exec(@str)
|
133
134
|
ch.on_data do |ch, data|
|
@@ -140,7 +141,7 @@ class SceneManager
|
|
140
141
|
end
|
141
142
|
ssh.loop
|
142
143
|
#parse the rpmSystemInfo.plist from the smart host to get host name
|
143
|
-
elsif @scliBridge == "/usr/local/bin/sclibridge "
|
144
|
+
elsif @scliBridge == "source ~/.zshrc && /usr/local/bin/sclibridge "
|
144
145
|
ssh.open_channel do |ch, success|
|
145
146
|
ch.exec("strings 'GNUstep/Library/ApplicationSupport/RacePointMedia/userConfig.rpmConfig/rpmSystemInfo.plist'")
|
146
147
|
ch.on_data do |ch, data|
|
@@ -157,30 +158,27 @@ class SceneManager
|
|
157
158
|
x = x[1].split("\n")
|
158
159
|
@savantHostName = x[0][1..-1]
|
159
160
|
@str = @scliBridge + "readstate \"" + @savantHostName + ".SoftwareVersion\""
|
160
|
-
alert @str
|
161
161
|
end
|
162
162
|
end
|
163
163
|
end
|
164
164
|
ssh.loop
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
end
|
182
|
-
#Use host name to query SoftwareVersion state from host
|
183
|
-
|
165
|
+
#Get version from file on smart host
|
166
|
+
@savantHostVersion = ssh.exec('@str')
|
167
|
+
# ssh.open_channel do |ch, success|
|
168
|
+
# alert "in channel"
|
169
|
+
# ch.exec("strings 'GNUstep/Library/ApplicationSupport/RacePointMedia/statusfiles/scsCredentials.plist'")
|
170
|
+
# ch.on_data do |ch, data|
|
171
|
+
# alert data
|
172
|
+
# if data.to_s.include? 'version'
|
173
|
+
# x = data.split("version</key>")
|
174
|
+
# x = x[1].split(%q{</string>})
|
175
|
+
# x = x[0].split(%q{<string>})
|
176
|
+
# @savantHostVersion = x[1]
|
177
|
+
# end
|
178
|
+
# end
|
179
|
+
# end
|
180
|
+
# ssh.loop
|
181
|
+
end
|
184
182
|
end
|
185
183
|
@builder["labelHostInfo"].text = @savantHostName + " Version : " + @savantHostVersion
|
186
184
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: savant-scenes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.192
|
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-05-
|
12
|
+
date: 2017-05-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sqlite3
|