Class: Chef::Knife::BigvServerCreate

Inherits:
Chef::Knife show all
Defined in:
lib/chef/knife/bigv_server_create.rb

Instance Method Summary collapse

Instance Method Details

#hObject


58
59
60
# File 'lib/chef/knife/bigv_server_create.rb', line 58

def h
  @highline ||= HighLine.new
end

#runObject


62
63
64
65
66
67
# File 'lib/chef/knife/bigv_server_create.rb', line 62

def run
  $stdout.sync = true
  system("bigv vm new --batch --vm-name #{config[:server_name]} --vm-cores #{config[:cores]} --vm-memory #{config[:memory]} --vm-discs #{config[:discs]} --vm-distribution #{config[:flavor]}")
  puts "\nServer ready!!!"

end