Sha256: f7bfd07ef2624998198e3cd3dc9ad2f03165d04b3dea54fd37dba108c6e54703

Contents?: true

Size: 512 Bytes

Versions: 5

Compression:

Stored size: 512 Bytes

Contents

module VagrantPlugins
  module CommandRDP
    class Config < Vagrant.plugin("2", :config)
      attr_accessor :port
      attr_accessor :search_port

      def initialize
        @port        = UNSET_VALUE
        @search_port = UNSET_VALUE
      end

      def finalize!
        @port        = 3389 if @port == UNSET_VALUE
        @search_port = 3389 if @search_port == UNSET_VALUE
      end

      def validate(machine)
        errors = _detected_errors
        { "RDP" => errors }
      end
    end
  end
end

Version data entries

5 entries across 2 versions & 2 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-1cf2a8db4ccb/plugins/commands/rdp/config.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-272fb27e0536/plugins/commands/rdp/config.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-309e896975d1/plugins/commands/rdp/config.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-b421af58e8b3/plugins/commands/rdp/config.rb
vagrant-tiktalik-0.0.3 vendor/bundle/ruby/2.0.0/bundler/gems/vagrant-1e28f1ac31e7/plugins/commands/rdp/config.rb