savant-scenes 1.0.15 → 1.0.16
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 +23 -16
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8bf34c3c16796b1c650b360c9b4cd7a47eb67f4b
|
4
|
+
data.tar.gz: 74cb1ccc92d52f7e5fe7ad085fa30d52da4a7511
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 242786e6ab40436f4d293b2c841794053065e66b980ecabba03c483bf4cdbd00287cea34dbea0e4c18686d6e576a2f8eab36ab9b27c8930a92491d5eac6e0d2a
|
7
|
+
data.tar.gz: de5489d9b2f3cbb0e9991807416acf906af471394dfe2082e7315c9d91b0e43047b6135aaa8247e620388cd8c5e0ddeb5af2365a02a888202d4e404341c932b7
|
data/bin/src/SceneManager.rb
CHANGED
@@ -109,7 +109,6 @@ class SceneManager
|
|
109
109
|
else
|
110
110
|
@scliBridge = "/usr/local/bin/sclibridge "
|
111
111
|
@dis = "GNUstep/Library/ApplicationSupport/RacePointMedia/statusfiles/dis/dashboard.sqlite"
|
112
|
-
alert "smart host"
|
113
112
|
end
|
114
113
|
end
|
115
114
|
end
|
@@ -129,6 +128,17 @@ class SceneManager
|
|
129
128
|
end
|
130
129
|
end
|
131
130
|
ssh.loop
|
131
|
+
ssh.open_channel do |ch, success|
|
132
|
+
ch.exec(@str)
|
133
|
+
ch.on_data do |ch, data|
|
134
|
+
alert data.inspect
|
135
|
+
@savantHostVersion = data
|
136
|
+
end
|
137
|
+
ch.on_extended_data do |ch, type, data|
|
138
|
+
alert "Error: #{data.inspect}"
|
139
|
+
end
|
140
|
+
end
|
141
|
+
ssh.loop
|
132
142
|
#parse the rpmSystemInfo.plist from the smart host to get host name
|
133
143
|
elsif @scliBridge == "/usr/local/bin/sclibridge "
|
134
144
|
ssh.open_channel do |ch, success|
|
@@ -147,28 +157,25 @@ class SceneManager
|
|
147
157
|
x = x[1].split("\n")
|
148
158
|
@savantHostName = x[0][1..-1]
|
149
159
|
@str = @scliBridge + "readstate \"" + @savantHostName + ".SoftwareVersion\""
|
150
|
-
alert @str
|
151
160
|
end
|
152
161
|
end
|
153
162
|
end
|
154
163
|
ssh.loop
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
alert "got stderr: #{data.inspect}"
|
164
|
+
ssh.open_channel do |ch, success|
|
165
|
+
ch.exec("strings 'GNUstep/Library/ApplicationSupport/RacePointMedia/statusfiles/scsCredentials.plist'")
|
166
|
+
ch.on_data do |ch, data|
|
167
|
+
if data.to_s.include? 'version'
|
168
|
+
x = data.split("version</key>")
|
169
|
+
x = x[1].split(%q{</string>})
|
170
|
+
x = x[0].split(%q{<string>})
|
171
|
+
@savantHostVersion = x[1]
|
172
|
+
end
|
173
|
+
end
|
166
174
|
end
|
167
175
|
end
|
168
|
-
|
176
|
+
#Use host name to query SoftwareVersion state from host
|
177
|
+
|
169
178
|
end
|
170
|
-
alert @savantHostName
|
171
|
-
alert @savantHostVersion
|
172
179
|
@builder["labelHostInfo"].text = @savantHostName + " Version : " + @savantHostVersion
|
173
180
|
|
174
181
|
#return true if version is 8.3 or later
|