Sha256: eecc4fc87b4533e865c269bec737cbbf6a55f1b279ca929fbfe4ef7d3790634d
Contents?: true
Size: 502 Bytes
Versions: 1
Compression:
Stored size: 502 Bytes
Contents
require 'tempfile' module Cloudkick::Command class Pssh < Base def index unless args.size == 3 raise CommandFailed, 'usage: cloudkick pssh <username> <output> <command>' end file = Tempfile.new('ck') client.get('nodes').each do |node| file.puts node.ipaddress end file.flush exec("pssh -h #{file.path} -l #{@args[0]} -o #{args[1]} #{args[2]}") file.close end end class Pscp < Base def index end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cloudkick-0.2.1 | lib/cloudkick/commands/parallel.rb |