./hss in hss-0.0.2 vs ./hss in hss-0.0.3
- old
+ new
@@ -37,10 +37,10 @@
puts '(what you type) -> (where it takes you)'
Config['patterns'].each { |pattern| puts pattern['example'] }
else
Config['patterns'].each do |pattern|
next unless Input.match(pattern['short'])
- long_form = '"' + pattern['long'] + '"'
+ long_form = eval '"' + pattern['long'] + '"'
#long_form = ERB.new('<%= "' + pattern['long'] + '" %>').result
exec "ssh #{Args} #{long_form}"
end
end