Sha256: ee9fb5c5045d43c60aee95ca3e30704795a38f44815549751956e41ee1b6f2f6

Contents?: true

Size: 517 Bytes

Versions: 2

Compression:

Stored size: 517 Bytes

Contents

module Vagabond
  module Actions
    module SSH
      def ssh
        if(lxc.exists?)
          if(lxc.running?)
            ui.info "#{ui.color('Vagabond:', :bold)} SSH connect to: #{ui.color(name, :cyan)}"
            exec("#{Config[:sudo]}ssh root@#{lxc.container_ip(10, true)} -i /opt/hw-lxc-config/id_rsa -oStrictHostKeyChecking=no")
          else
            ui.error "Node not running: #{name}"
          end
        else
          ui.error "Node not created: #{name}"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vagabond-0.1.4 lib/vagabond/actions/ssh.rb
vagabond-0.1.2 lib/vagabond/actions/ssh.rb