Class: Dcmgr::Cli::Quota
Constant Summary collapse
Instance Method Summary collapse
Instance Method Details
#modify(account_uuid) ⇒ Object
11 12 13 14 |
# File 'lib/dcmgr/cli/quota.rb', line 11 def modify(account_uuid) acc = M::Account[account_uuid] || UnknownUUIDError.raise(account_uuid) super(M::Quota,acc.quota.canonical_uuid,{:instance_total_weight => [:weight], :volume_total_size => [:size]}) end |
#show(account_uuid) ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'lib/dcmgr/cli/quota.rb', line 17 def show(account_uuid) acc = M::Account[account_uuid] || raise(Thor::Error, "Unknown Account UUID: #{account_uuid}") puts ERB.new(<<__END, nil, '-').result(binding) Instance total weight: <%= acc.quota.instance_total_weight %> Volume total size: <%= acc.quota.volume_total_size %> __END end |