Get local data path from project
This commit is contained in:
parent
bc365ab796
commit
68aa184bee
@ -18,6 +18,7 @@ module Vagrant
|
||||
end
|
||||
super
|
||||
@logger = Log4r::Logger.new("vagrant::environment")
|
||||
@local_data_path = Pathname.new(@client.local_data_path())
|
||||
end
|
||||
|
||||
# Gets a target (machine) by name
|
||||
|
||||
@ -76,11 +76,6 @@ module VagrantPlugins
|
||||
Pathname.new(@client.data_dir(req).data_dir)
|
||||
end
|
||||
|
||||
# TODO: local data path comes from the project
|
||||
def get_local_data_path
|
||||
#TODO
|
||||
end
|
||||
|
||||
def get_provider
|
||||
req = Google::Protobuf::Empty.new
|
||||
@client.provider(req)
|
||||
|
||||
@ -17,6 +17,14 @@ module VagrantPlugins
|
||||
self.new(conn.to_s, broker)
|
||||
end
|
||||
|
||||
# Gets the local data path
|
||||
# return [String]
|
||||
def get_local_data_path
|
||||
req = Google::Protobuf::Empty.new
|
||||
resp = @client.local_data(req)
|
||||
return resp.path
|
||||
end
|
||||
|
||||
# Returns a machine client for the given name
|
||||
# return [VagrantPlugins::CommandServe::Client::Machine]
|
||||
def target(name)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user