Sha256: 99c65974317f4271c3b1e54d5d0a8e4fab0d822700173e822c7db9e27fd0f8c3
Contents?: true
Size: 664 Bytes
Versions: 4
Compression:
Stored size: 664 Bytes
Contents
module ZZSharedLib class DeployGroupSimpleDB < RightAws::ActiveSdb::Base set_domain_name "deploy" columns do zz_object_type group config_json recipes_deploy_tag app_deploy_tag created_at updated_at end def self.object_type @@object_type ||= 'deploy_group_type'.freeze end def config @config ||= JSON.parse(self.config_json).recursively_symbolize_keys! end def config=(object) self.config_json = JSON.fast_generate(object) end # use strings for time def save self.updated_at = Time.now.strftime('%Y-%m-%dT%H:%M:%S%z') super end end end
Version data entries
4 entries across 4 versions & 1 rubygems