Class: VagrantPlugins::Cloudcenter::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



36
37
38
39
40
41
42
43
# File 'lib/vagrant-cloudcenter/config.rb', line 36

def initialize()
     @access_key = UNSET_VALUE
     @host = UNSET_VALUE
     @username = UNSET_VALUE
     @deployment_config = UNSET_VALUE
     @use_https = true
     @ssl_ca_file = ''
end

Instance Attribute Details

#access_keyString

The access key ID for accessing Cloudcenter.

Returns:

  • (String)


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

def access_key
  @access_key
end

#deployment_configString

JSON config representing the environment to be deployed

Returns:

  • (String)


24
25
26
# File 'lib/vagrant-cloudcenter/config.rb', line 24

def deployment_config
  @deployment_config
end

#hostString

The address of the host

Returns:

  • (String)


14
15
16
# File 'lib/vagrant-cloudcenter/config.rb', line 14

def host
  @host
end

#ssl_ca_fileString

Path to the SSL CA file

Returns:

  • (String)


34
35
36
# File 'lib/vagrant-cloudcenter/config.rb', line 34

def ssl_ca_file
  @ssl_ca_file
end

#use_httpsboolean

Whether or not to use HTTPS

Returns:

  • (boolean)


29
30
31
# File 'lib/vagrant-cloudcenter/config.rb', line 29

def use_https
  @use_https
end

#usernameString

Comment to use when provisioning the VM

Returns:

  • (String)


19
20
21
# File 'lib/vagrant-cloudcenter/config.rb', line 19

def username
  @username
end