lib/vagrant-vultr/helpers/client.rb in vagrant-vultr-0.1.1 vs lib/vagrant-vultr/helpers/client.rb in vagrant-vultr-0.1.2
- old
+ new
@@ -72,18 +72,18 @@
def os_id(os)
oses.find { |o| o['name'] == os }['OSID']
end
def regions
- request { ::Vultr::Region.list }.values
+ request { ::Vultr::Regions.list }.values
end
def region_id(region)
regions.find { |r| r['name'] == region }['DCID']
end
def vps_plan_id(plan)
- plans = request { ::Vultr::Plan.list }
+ plans = request { ::Vultr::Plans.list }
plans.values.find { |p| p['name'] == plan }['VPSPLANID']
end
def ssh_keys
ssh_keys = request { ::Vultr::SSHKey.list }