Sha256: eb1aed76f2a60a38953234a8df85ab86e16d35552c5dc6adcaa1570979ce3b71

Contents?: true

Size: 449 Bytes

Versions: 6

Compression:

Stored size: 449 Bytes

Contents

#!/usr/bin/env ruby

require 'opener/daemons'
require 'opener/core/resource_switcher'

require_relative '../lib/opener/opinion_detector'

switcher      = Opener::Core::ResourceSwitcher.new
switcher_opts = {}

parser = Opener::Daemons::OptParser.new do |opts|
  switcher.bind(opts, switcher_opts)
end

options = parser.parse!(ARGV)
daemon  = Opener::Daemons::Daemon.new(Opener::OpinionDetector, options)

switcher.install(switcher_opts)
daemon.start

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
opener-opinion-detector-1.1.5 exec/opinion-detector.rb
opener-opinion-detector-1.1.4 exec/opinion-detector.rb
opener-opinion-detector-1.1.3 exec/opinion-detector.rb
opener-opinion-detector-1.1.2 exec/opinion-detector.rb
opener-opinion-detector-1.1.1 exec/opinion-detector.rb
opener-opinion-detector-1.1.0 exec/opinion-detector.rb