mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-05-28 04:36:05 -04:00
Add unique vertex type for root
This commit is contained in:
parent
cd99ff6525
commit
2f0fdfc153
2 changed files with 16 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ module VagrantPlugins
|
|||
autoload :Method, Vagrant.source_root.join("plugins/commands/serve/mappers/internal/graph/vertex/method").to_s
|
||||
autoload :NamedValue, Vagrant.source_root.join("plugins/commands/serve/mappers/internal/graph/vertex/named_value").to_s
|
||||
autoload :Output, Vagrant.source_root.join("plugins/commands/serve/mappers/internal/graph/vertex/output").to_s
|
||||
autoload :Root, Vagrant.source_root.join("plugins/commands/serve/mappers/internal/graph/vertex/root").to_s
|
||||
autoload :Value, Vagrant.source_root.join("plugins/commands/serve/mappers/internal/graph/vertex/value").to_s
|
||||
# @return [Object] value of vertex
|
||||
attr_reader :value
|
||||
|
|
|
|||
15
plugins/commands/serve/mappers/internal/graph/vertex/root.rb
Normal file
15
plugins/commands/serve/mappers/internal/graph/vertex/root.rb
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
module VagrantPlugins
|
||||
module CommandServe
|
||||
class Mappers
|
||||
module Internal
|
||||
class Graph
|
||||
# Represents a root vertex within the graph
|
||||
class Vertex
|
||||
class Root < Vertex
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Reference in a new issue