Method: Amt::Sol#stop
- Defined in:
- lib/amt/sol.rb
#stop ⇒ Object
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/amt/sol.rb', line 44 def stop res = 0 case @instance.EnabledState when 32770 # SOL is enabled and IDE-R is disabled puts "Disabling SOL" if Amt.debug res = @instance.RequestStateChange(32768) when 32771 # SOL and IDE-R are enabled puts "Disabling SOL" if Amt.debug res = @instance.RequestStateChange(32769) when 32768 puts "SOL and IDE-R are disabled" if Amt.debug when 32769 puts "SOL is disabled and IDE-R is enabled" if Amt.debug else puts "unknown #{@instance.EnabledState}" res = 1 end end |