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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/src/SceneManager.rb +20 -22
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 513eaec30006634d612c0c0011c6ae04bb2a8ece
4
- data.tar.gz: 4a201daf209519ed25fd66c907e810302e624ec5
3
+ metadata.gz: dff21005684a2d13bd0e2b378b2158c740a412a7
4
+ data.tar.gz: e2bf40e61a851684e1074d975d4c8d2f66de243a
5
5
  SHA512:
6
- metadata.gz: 6bc788fdfc1800533c133b34c2308fadce86bdfe8d5c076febe7d5c3d851f97e6a3e0604b6bd8e280573a6ab5b2bd7db865176814ba9e65202b7ae184cfaecc3
7
- data.tar.gz: 204650b39089ab683cc89fe37f073ac1836fcdacdfc8f52663865c6319fc328fd41e57905b257edf8d2171d78057bc8ea793d60daba62c52bf10d2b80f091193
6
+ metadata.gz: 93d334c7bc3c66b1009405ef6bebc322a1e6d56e556ff507a028aa6ec67017d18effa6073ef85b899228ba5b44a43cb3263ebcb6ab853076bbbd90ccc07bca5c
7
+ data.tar.gz: efda00ff13108475b8022f1688b22a301511cd502673699997394d5ef16c4111c963b2497064fd320740a36f9870e5706d5bde94032a911394c6c75c6434faf3
@@ -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
- ssh.open_channel do |ch, success|
166
- ch.exec("strings 'GNUstep/Library/ApplicationSupport/RacePointMedia/statusfiles/scsCredentials.plist'")
167
- ch.on_data do |ch, data|
168
- alert data.to_s
169
- if data.to_s.include? 'version'
170
- x = data.split("version</key>")
171
- x = x[1].split(%q{</string>})
172
- x = x[0].split(%q{<string>})
173
- alert x[0]
174
- alert x[1]
175
- @savantHostVersion = x[1]
176
-
177
- end
178
- end
179
- end
180
- ssh.loop
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.19
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-05 00:00:00.000000000 Z
12
+ date: 2017-05-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sqlite3