2012-11-07 05:28:44 +00:00
|
|
|
require "vagrant"
|
|
|
|
|
|
|
|
module VagrantPlugins
|
|
|
|
module Kernel_V2
|
|
|
|
class VagrantConfig < Vagrant.plugin("2", :config)
|
|
|
|
attr_accessor :host
|
2013-04-03 23:18:37 +00:00
|
|
|
|
2014-01-08 03:11:08 +00:00
|
|
|
def initialize
|
|
|
|
@host = UNSET_VALUE
|
|
|
|
end
|
|
|
|
|
|
|
|
def finalize!
|
2014-02-05 23:35:37 +00:00
|
|
|
@host = :detect if @host == UNSET_VALUE
|
2014-01-08 03:11:08 +00:00
|
|
|
@host = @host.to_sym if @host
|
|
|
|
end
|
|
|
|
|
2013-04-03 23:18:37 +00:00
|
|
|
def to_s
|
|
|
|
"Vagrant"
|
|
|
|
end
|
2012-11-07 05:28:44 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|