Skip to content

Instantly share code, notes, and snippets.

@ianneub
ianneub / dssh
Last active August 29, 2015 14:19 — forked from kareemk/dssh
#!/usr/bin/env ruby
require 'net/http'
require 'json'
raise "Invalid arguments: dssh [container-name] [command=/bin/bash]" if ARGV.length < 1
service_name = "#{ARGV[0]}"
ARGV[1] ||= "/bin/bash"
command = ARGV[1..-1].join(' ')