Class: VagrantPlugins::MOS::Command
- Inherits:
-
Object
- Object
- VagrantPlugins::MOS::Command
- Defined in:
- lib/vagrant-mos/command/mos-flavors.rb,
lib/vagrant-mos/command/mos-templates.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/vagrant-mos/command/mos-flavors.rb', line 7 def execute machine = @env.machine(:default, :mos) region = machine.provider_config.region # Get the configs region_config = machine.provider_config.get_region_config(region) @logger.info("Connecting to MOS...") mos_compute = Client.new(region_config.access_key, region_config.access_secret, region_config.access_url) results = mos_compute.describe_instance_types["InstanceType"] puts results 0 end |