Sha256: cd189e4c40311f22316325a315d797b35b380d3906230937b72568910c4cc5ae

Contents?: true

Size: 427 Bytes

Versions: 8

Compression:

Stored size: 427 Bytes

Contents

module Kontena::Plugin::Vagrant::Master
  class SshCommand < Kontena::Command
    include Kontena::Cli::Common

    def execute
      require_relative '../../../machine/vagrant'

      vagrant_path = "#{Dir.home}/.kontena/vagrant_master"
      abort("Cannot find Vagrant kontena-master".colorize(:red)) unless Dir.exist?(vagrant_path)

      Dir.chdir(vagrant_path) do
        system('vagrant ssh')
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
kontena-plugin-vagrant-0.2.5 lib/kontena/plugin/vagrant/master/ssh_command.rb
kontena-plugin-vagrant-0.2.2 lib/kontena/plugin/vagrant/master/ssh_command.rb
kontena-plugin-vagrant-0.2.1 lib/kontena/plugin/vagrant/master/ssh_command.rb
kontena-plugin-vagrant-0.2.0 lib/kontena/plugin/vagrant/master/ssh_command.rb
kontena-plugin-vagrant-0.2.0.pre2 lib/kontena/plugin/vagrant/master/ssh_command.rb
kontena-plugin-vagrant-0.1.2 lib/kontena/plugin/vagrant/master/ssh_command.rb
kontena-plugin-vagrant-0.1.1 lib/kontena/plugin/vagrant/master/ssh_command.rb
kontena-plugin-vagrant-0.1.0 lib/kontena/plugin/vagrant/master/ssh_command.rb