Sha256: 681ab4ac0a5d8b9923e76fda09aa4210ed7ea47fb07bf804d9e6c5ac198b77af
Contents?: true
Size: 1.34 KB
Versions: 5
Compression:
Stored size: 1.34 KB
Contents
#!/usr/bin/env ruby # Author:: Nicolas Despres <nicolas.despres@gmail.com>. # Copyright:: Copyright (c) 2004, 2005 TTK team. All rights reserved. # License:: LGPL # $Id: ttkm 567 2005-04-13 08:00:06Z polrop $ require 'pathname' ME = Pathname.new($0).basename ME_DIR = Pathname.new(__FILE__).dirname $PROGRAME_NAME = ME $PROGRAME_NAME.freeze dir = Pathname.new(__FILE__).dirname $: << dir + '..' + 'lib' $: << dir + '..' + 'ruby_ex' $: << dir require 'ttkd' require "#{ME_DIR}/getopts/ttkm" SVN_REPOSITORY_REVISION = '$Rev: 567 $'.gsub!(/\D/, '').to_i SVN_REPOSITORY_DATE = '$Date: 2005-04-13 10:00:06 +0200 (Wed, 13 Apr 2005) $'.sub!(/^.*?\((.*?)\).*?$/) { $1 } TTKM_VERSION = Version.new(0, 1, SVN_REPOSITORY_REVISION) begin opts = TTK::Getopts::TTKm.parse(ARGV) service = TTK::Services::MonitorClient.new service.start_service(nil, opts[:uri]) puts "# C^d to exit" puts "---" puts "monitor kind: #{service.client.class.to_s}" puts "verbose mode: #{$VERBOSE}" puts "started at: #{Time.now}" puts "local uri: #{service.uri}" puts "monitor uri: #{service.client.monitor.__drburi}" puts "nb observers: #{service.client.monitor.count_observers}" puts "notifications:" STDIN.gets puts "stoped at: #{Time.now}" rescue => exc STDERR.puts($VERBOSE ? exc.long_pp : exc.short_pp) exit(1) ensure service.stop_service if service end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ttk-0.1.576 | bin/ttkm |
ttk-0.2.1 | bin/ttkm |
ttk-0.2.0 | bin/ttkm |
ttk-0.1.579 | bin/ttkm |
ttk-0.1.580 | bin/ttkm |