Sha256: 7b195d5d254c471aa6fc9f76b97ed6401c3b908b2414a8052e9277d3f866228d

Contents?: true

Size: 820 Bytes

Versions: 5

Compression:

Stored size: 820 Bytes

Contents

require 'net/ssh/multi'
require 'vagrant-g5k/util/g5k_connection'
include Process

module VagrantPlugins
  module G5K
    class Command < Vagrant.plugin('2', :command)

      # Show description when `vagrant list-commands` is triggered
      def self.synopsis
        "plugin: vagrant-g5k: manage virtual machines on grid'5000"
      end

      def execute
        # TODO
        options = {}
        opts = OptionParser.new do |o|
          o.banner = 'Usage: vagrant g5k [vm-name]'
          o.separator ''
          o.version = VagrantPlugins::G5K::VERSION
          o.program_name = 'vagrant g5k'
        end
        argv = parse_options(opts)
        with_target_vms(argv, options) do |machine|
          puts machine.config.vm.networks
        end
        puts "sleeping"
        wait
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
vagrant-g5k-0.9.4 lib/vagrant-g5k/command.rb
vagrant-g5k-0.9.3 lib/vagrant-g5k/command.rb
vagrant-g5k-0.9.2 lib/vagrant-g5k/command.rb
vagrant-g5k-0.9.1 lib/vagrant-g5k/command.rb
vagrant-g5k-0.9.0 lib/vagrant-g5k/command.rb