Sha256: f946076266b3ee786b28a380bd0537b3ac9d11bd5e322f1e517e6bb8e4191e79
Contents?: true
Size: 934 Bytes
Versions: 7
Compression:
Stored size: 934 Bytes
Contents
require 'vagrant-skytap/command/helpers' module VagrantPlugins module Skytap module Command module PublishUrl class Show < Vagrant.plugin("2", :command) include Command::Helpers def execute if publish_sets = fetch_environment.publish_sets.presence results = publish_sets.collect do |ps| "#{ps.desktops_url || 'n/a'}\n" \ " VMs: #{machine_names(ps.vm_ids).join(', ').presence || '(none)'}" \ " Password protected? #{ps.password_protected? ? 'yes' : 'no'}" end @env.ui.info(I18n.t("vagrant_skytap.commands.publish_urls.list", publish_urls: results.join("\n"))) else @env.ui.info(I18n.t("vagrant_skytap.commands.publish_urls.empty_list")) end # Success, exit status 0 0 end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems