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

Version Path
mccloud-0.1.1 lib/mccloud/command/ssh.rb
mccloud-0.0.28 lib/mccloud/command/ssh.rb
mccloud-0.0.27 lib/mccloud/command/ssh.rb
mccloud-0.0.26 lib/mccloud/command/ssh.rb
mccloud-0.0.25 lib/mccloud/command/ssh.rb
mccloud-0.0.24 lib/mccloud/command/ssh.rb
mccloud-0.0.23 lib/mccloud/command/ssh.rb
mccloud-0.0.22 lib/mccloud/command/ssh.rb
mccloud-0.0.21 lib/mccloud/command/ssh.rb
mccloud-0.0.20 lib/mccloud/command/ssh.rb
mccloud-0.0.19 lib/mccloud/command/ssh.rb
mccloud-0.0.18 lib/mccloud/command/ssh.rb
mccloud-0.0.17 lib/mccloud/command/ssh.rb
mccloud-0.0.16 lib/mccloud/command/ssh.rb
mccloud-0.0.15 lib/mccloud/command/ssh.rb
mccloud-0.0.14 lib/mccloud/command/ssh.rb