Sha256: 11026de78d09936926218b5b0cfcc226b3d2ed0d86d4519a18267ef3ab6fe4ce
Contents?: true
Size: 586 Bytes
Versions: 2
Compression:
Stored size: 586 Bytes
Contents
# -*- coding: utf-8 -*- module Dcmgr::Models # Per account quota limit for the VDC resources. class Quota < BaseNew taggable 'q' inheritable_schema do Fixnum :account_id, :null=>false Float :instance_total_weight Fixnum :volume_total_size index :account_id end with_timestamps def before_validation # sets default quota values from dcmgr.conf. self.instance_total_weight ||= Dcmgr.conf.account_instance_total_weight self.volume_total_size ||= Dcmgr.conf.account_volume_total_size super end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
wakame-vdc-agents-11.06.0 | lib/dcmgr/models/quota.rb |
wakame-vdc-dcmgr-11.06.0 | lib/dcmgr/models/quota.rb |