lightwaverf 0.12.0 → 0.12.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/lightwaverf.rb +4 -3
  2. metadata +1 -1
data/lib/lightwaverf.rb CHANGED
@@ -478,9 +478,10 @@ class LightWaveRF
478
478
  debug and ( p 'Executing send on device: ' + device + ' in room: ' + room + ' with ' + ( state ? 'state ' + state : 'no state' ))
479
479
 
480
480
 
481
- pythonFile = self.get_config['pywaverf']
482
- if File.exist?( pythonFile )
483
- cmd = "#{pythonFile} \"#{room}\" \"#{device}\" \"#{state}\" \"#{debug}\""
481
+ # starting to optionally move some functionality out of here
482
+ alternativeScript = self.get_config['pywaverf']
483
+ if alternativeScript and File.exist?( alternativeScript )
484
+ cmd = "#{alternativeScript} \"#{room}\" \"#{device}\" \"#{state}\" \"#{debug}\""
484
485
  debug and ( p cmd )
485
486
  p `#{cmd}`
486
487
  debug and ( p self.time 'done python' )
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lightwaverf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: