class Vagrant
Constants
- TEMPLATE
Public Class Methods
new()
click to toggle source
# File lib/open-dock/providers/vagrant.rb, line 29 def initialize # Nothing end
Public Instance Methods
create(config)
click to toggle source
# File lib/open-dock/providers/vagrant.rb, line 32 def create(config) # Create Vagrantfile erb= Erubis::Eruby.new(TEMPLATE) out = erb.result(config) File.write "Vagrantfile", out # vagrant up system "vagrant up" end
delete(host)
click to toggle source
# File lib/open-dock/providers/vagrant.rb, line 41 def delete(host) #vagrant destroy -f system "vagrant destroy -f" #Remove Vagrantfile system "rm Vagrantfile" end
list_params()
click to toggle source
# File lib/open-dock/providers/vagrant.rb, line 48 def list_params say "\nMemory: RAM memory in Megabytes" say "\nIp: Every IP in the 192.168.0.0 range" say "\nBoxes: Every box from https://atlas.hashicorp.com" end
Private Instance Methods
create_connection(config)
click to toggle source
# File lib/open-dock/providers/vagrant.rb, line 55 def create_connection(config) # nothing end