Sha256: b4fa4b154c6be72cdc152a57d260c43a37f7a349844b8958327acb9947dba500

Contents?: true

Size: 542 Bytes

Versions: 5

Compression:

Stored size: 542 Bytes

Contents

module Vagabond
  module Actions
    module SSH
      def _ssh
        name_required!
        if(lxc.exists?)
          if(lxc.running?)
            ui.info "#{ui.color('Vagabond:', :bold)} SSH connect to: #{ui.color(name, :cyan)}"
            exec("#{options[: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

5 entries across 5 versions & 1 rubygems

Version Path
vagabond-0.2.8 lib/vagabond/actions/ssh.rb
vagabond-0.2.6 lib/vagabond/actions/ssh.rb
vagabond-0.2.4 lib/vagabond/actions/ssh.rb
vagabond-0.2.2 lib/vagabond/actions/ssh.rb
vagabond-0.2.0 lib/vagabond/actions/ssh.rb