Sha256: e6e1f5ca16f7a29c98d887be0e2e6d14f64149b23ff93b1a9620fec6aea260c5

Contents?: true

Size: 417 Bytes

Versions: 8

Compression:

Stored size: 417 Bytes

Contents

#!/usr/bin/env ruby

require 'rsense/client/daemon'
require "rsense/version"
require "jruby-jars"
require "pathname"

daemon = Rsense::Client::Daemon.new(ARGV[1..-1])

if ARGV[0] == 'start'
  daemon.start
elsif ARGV[0] == 'stop'
  daemon.stop
elsif ARGV[0] == 'restart'
  daemon.stop
  daemon.start
else
  STDERR.puts "rsense version #{Rsense::VERSION}"
  STDERR.puts "Usage: rsense <start|stop|restart>"
  exit!
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rsense-0.5.13 bin/rsense
rsense-0.5.12 bin/rsense
rsense-0.5.11 bin/rsense
rsense-0.5.10 bin/rsense
rsense-0.5.9 bin/rsense
rsense-0.5.8 bin/rsense
rsense-0.5.7 bin/rsense
rsense-0.5.6 bin/rsense