module Xcflushd::GLIHelpers

Constants

POSITIVE_N_RE

Public Instance Methods

set_title(title) click to toggle source
# File lib/xcflushd/gli_helpers.rb, line 75
def set_title(title)
  if Process.respond_to? :setproctitle
    Process.setproctitle title
  else
    $0 = title
  end
end
start_xcflusher(options) click to toggle source
# File lib/xcflushd/gli_helpers.rb, line 71
def start_xcflusher(options)
  Xcflushd::Runner.run(Hash[options.map { |k, v| [k.to_s.tr('-', '_').to_sym, v] }])
end