Class: VagrantPlugins::SecuredCloud::Configuration::AuthenticationInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/secured-cloud-vagrant/configs/authentication_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAuthenticationInfo

Returns a new instance of AuthenticationInfo.



13
14
15
16
17
# File 'lib/secured-cloud-vagrant/configs/authentication_info.rb', line 13

def initialize
  @url = UNSET_VALUE
  @applicationKey = UNSET_VALUE
  @sharedSecret = UNSET_VALUE
end

Instance Attribute Details

#applicationKeyObject

Returns the value of attribute applicationKey.



10
11
12
# File 'lib/secured-cloud-vagrant/configs/authentication_info.rb', line 10

def applicationKey
  @applicationKey
end

#sharedSecretObject

Returns the value of attribute sharedSecret.



11
12
13
# File 'lib/secured-cloud-vagrant/configs/authentication_info.rb', line 11

def sharedSecret
  @sharedSecret
end

#urlObject

Returns the value of attribute url.



9
10
11
# File 'lib/secured-cloud-vagrant/configs/authentication_info.rb', line 9

def url
  @url
end

Instance Method Details

#finalize!Object



36
37
38
39
40
41
42
# File 'lib/secured-cloud-vagrant/configs/authentication_info.rb', line 36

def finalize!

  @url = nil if(@url == UNSET_VALUE)
  @applicationKey = nil if(@applicationKey == UNSET_VALUE)
  @sharedSecret = nil if(@sharedSecret == UNSET_VALUE)
  
end

#merge(other) ⇒ Object



23
24
25
26
27
28
29
30
31
32
33
# File 'lib/secured-cloud-vagrant/configs/authentication_info.rb', line 23

def merge(other)
  
  super.tap do |result|
    
    result.url = (other.url == UNSET_VALUE) ? @url : other.url
    result.applicationKey = (other.applicationKey == UNSET_VALUE) ? @url : other.applicationKey
    result.sharedSecret = (other.sharedSecret == UNSET_VALUE) ? @sharedSecret : other.sharedSecret
    
  end
  
end

#validate(machine) ⇒ Object



19
20
21
# File 'lib/secured-cloud-vagrant/configs/authentication_info.rb', line 19

def validate(machine)
  
end