Class: VagrantPlugins::RDP::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-rdp/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



9
10
11
12
# File 'lib/vagrant-rdp/config.rb', line 9

def initialize
  @width  = UNSET_VALUE
  @height = UNSET_VALUE
end

Instance Attribute Details

#heightObject

Returns the value of attribute height.



7
8
9
# File 'lib/vagrant-rdp/config.rb', line 7

def height
  @height
end

#widthObject

Returns the value of attribute width.



6
7
8
# File 'lib/vagrant-rdp/config.rb', line 6

def width
  @width
end

Instance Method Details

#finalize!Object



20
21
22
23
# File 'lib/vagrant-rdp/config.rb', line 20

def finalize!
  @width  = 1024 if @width  == UNSET_VALUE
  @height = 768  if @height == UNSET_VALUE
end

#validate(machine) ⇒ Object



14
15
16
17
18
# File 'lib/vagrant-rdp/config.rb', line 14

def validate(machine)
  errors = []

  { "RDP" => errors }
end