Sha256: 2bb297bbf8329ea96c873e2f5b67913443fb043a327b921c91d39cf77f71901a
Contents?: true
Size: 714 Bytes
Versions: 1
Compression:
Stored size: 714 Bytes
Contents
require 'vagrant-openstack-illuin-provider/command/openstack_command' module VagrantPlugins module Openstack module Command class FlavorList < OpenstackCommand def self.synopsis I18n.t('vagrant_openstack.command.flavor_list_synopsis') end def cmd(name, argv, env) fail Errors::NoArgRequiredForCommand, cmd: name unless argv.size == 0 flavors = env[:openstack_client].nova.get_all_flavors(env) rows = [] flavors.each do |f| rows << [f.id, f.name, f.vcpus, f.ram, f.disk] end display_table(env, ['ID', 'Name', 'vCPU', 'RAM (Mo)', 'Disk size (Go)'], rows) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-openstack-illuin-provider-0.12.0 | lib/vagrant-openstack-illuin-provider/command/flavor_list.rb |