Sha256: 420e4778b2b55b01c2b2a6883ec11300ff26374c36ce1ccec420f0b6664529c7
Contents?: true
Size: 526 Bytes
Versions: 16
Compression:
Stored size: 526 Bytes
Contents
module Mccloud module Command class SshCommand < Base argument :box_name, :type => :string, :optional => false, :default => nil argument :command, :type => :string, :optional => true, :default => nil register "ssh [NAME] [COMMAND]", "Ssh-shes into the box" def execute env.config.providers.each do |name,provider| env.logger.debug("Asking provider #{name} to ssh into box #{box_name}") provider.ssh(box_name,command,options) end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems