Sha256: f1e97733ff23cdae803fe9591deca57fb5555394a3cb5113336a36d202e4f2e6

Contents?: true

Size: 378 Bytes

Versions: 2

Compression:

Stored size: 378 Bytes

Contents

# -*- coding: utf-8 -*-

module Dcmgr::Models
  # Per account quota limit for the VDC resources.
  class Quota < BaseNew

    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.12.0 lib/dcmgr/models/quota.rb
wakame-vdc-dcmgr-11.12.0 lib/dcmgr/models/quota.rb