Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 21 lines (15 sloc) 305 Bytes
#!/usr/bin/env ruby
require 'json'
begin
ashrc = "./.ashrc"
f = File.open(ashrc, 'r')
rescue
ashrc = ENV['HOME'] + "/.ashrc"
f = File.open(ashrc, 'r')
end
$tunnel = ""
host = ARGV[0]
$default_profile = "Pro"
json = f.read
hash = JSON.parse(json)
hash.keys.each do |key| puts key; end