Sha256: 87335537cdc1c3acfda5bd9a299635c36746e9b424d85bace6f700ce07dacdfd
Contents?: true
Size: 412 Bytes
Versions: 8
Compression:
Stored size: 412 Bytes
Contents
#!/usr/bin/env ruby # Emulate server behavior if ENV['TUNNEL_PORT'] fail 'Something went wrong!' if ENV['FAIL_TUNNEL'] puts 'TUNNEL READY' else fail 'Something went wrong!' if ENV['FAIL_PORT'] puts 1234 end # Log to SSH_MOCK_OUTFILE require 'json' File.open(ENV.fetch('SSH_MOCK_OUTFILE'), 'w') do |f| f.write({ 'argc' => ARGV.size, 'argv' => ARGV, 'env' => ENV.to_hash }.to_json) end
Version data entries
8 entries across 4 versions & 1 rubygems