Project

General

Profile

Bug #5811 ยป test.rb

netshade (Chris Zelenak), 12/27/2011 03:42 AM

 
1
#!/usr/bin/env ruby
2
require 'rubygems'
3
require 'bundler'
4
Bundler.require(:default)
5
options = {}
6
#options[:collector] = 'localhost:8000'
7
Instrumental::Agent.logger = Logger.new(STDOUT)
8
`hostname`
9
I = Instrumental::Agent.new('b6dce7700edae556c08a1a5b25ed2425', options)
10
puts "Top output got"
11
host = `hostname`
12
puts "Host is #{host}"