Sha256: 0fc1dae4856292927c94d1d7460d6183781296d905379d7677fa2929b9ff9745

Contents?: true

Size: 509 Bytes

Versions: 2

Compression:

Stored size: 509 Bytes

Contents

require 'vagrant'
require 'pe_build/archive_collection'

module PEBuild
class Command
class List < Vagrant.plugin(2, :command)
  def execute
    archive_dir = PEBuild.archive_directory(@env)

    if File.directory? archive_dir
      @env.ui.info "PE versions available (at #{archive_dir})"
      @env.ui.info "---"

      collection = PEBuild::ArchiveCollection.new(archive_dir, @env)
      collection.display
    else
      @env.ui.warn "No PE versions available at #{archive_dir}"
    end
  end
end
end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vagrant-pe_build-0.2.0 lib/pe_build/command/list.rb
vagrant-pe_build-0.1.0 lib/pe_build/command/list.rb