Sha256: af8849abf3e70a032ebedb6dd57be786e36212815d8742479bdb1d64cd88fa73

Contents?: true

Size: 315 Bytes

Versions: 16

Compression:

Stored size: 315 Bytes

Contents

Execute.define_task do
  desc "stop", "Stop rhoconnect server"
  def stop
    invoke :dtach_installed
    if windows?
      File.delete "#{rhoconnect_pid}" if system("FOR /F %A in (#{rhoconnect_pid}) do taskkill /F /PID %A")
    else
      cmd "cat #{rhoconnect_pid} | xargs kill -3"
    end #if
  end #stop
end #do

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rhoconnect-3.3.6 commands/commands/rhoconnect/stop.rb
rhoconnect-3.3.5 commands/commands/rhoconnect/stop.rb
rhoconnect-3.3.4 commands/commands/rhoconnect/stop.rb
rhoconnect-3.3.3 commands/commands/rhoconnect/stop.rb
rhoconnect-3.3.2 commands/commands/rhoconnect/stop.rb
rhoconnect-3.3.1 commands/commands/rhoconnect/stop.rb
rhoconnect-3.3.1.beta4 commands/commands/rhoconnect/stop.rb
rhoconnect-3.3.1.beta3 commands/commands/rhoconnect/stop.rb
rhoconnect-3.3.1.beta2 commands/commands/rhoconnect/stop.rb
rhoconnect-3.2.1 commands/commands/rhoconnect/stop.rb
rhoconnect-3.2.0 commands/commands/rhoconnect/stop.rb
rhoconnect-3.2.0.beta5 commands/commands/rhoconnect/stop.rb
rhoconnect-3.2.0.beta4 commands/commands/rhoconnect/stop.rb
rhoconnect-3.2.0.beta3 commands/commands/rhoconnect/stop.rb
rhoconnect-3.2.0.beta2 commands/commands/rhoconnect/stop.rb
rhoconnect-3.2.0.beta1 commands/commands/rhoconnect/stop.rb