Class: Bosh::Director::Models::CloudConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/bosh/director/models/cloud_config.rb

Instance Method Summary collapse

Instance Method Details

#before_createObject



5
6
7
# File 'lib/bosh/director/models/cloud_config.rb', line 5

def before_create
  self.created_at ||= Time.now
end

#manifestObject



13
14
15
# File 'lib/bosh/director/models/cloud_config.rb', line 13

def manifest
  Psych.load properties
end

#manifest=(cloud_config_hash) ⇒ Object



9
10
11
# File 'lib/bosh/director/models/cloud_config.rb', line 9

def manifest=(cloud_config_hash)
  self.properties = Psych.dump(cloud_config_hash)
end