bin/go_execute
#!/usr/bin/env ruby
require 'bundler/setup'
require 'chloride'
require 'optparse'
opt_parse = OptionParser.new do |opts|
opts.banner = 'Usage: go_execute [options] host command'
args = {}
opts.on('-h', '--help', 'Prints this help') do
puts opts
exit
end
args
end
if ARGV.length < 2
opt_parse.parse!(%w[--help])
else
hostname = ARGV[0]
command = ARGV[1]
Chloride.go_execute(hostname, command)
end