commands/snapshot: use require relative
This commit is contained in:
parent
9e371277a9
commit
0a52e06298
|
@ -16,6 +16,7 @@ module VagrantPlugins
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Success, exit with 0
|
||||||
0
|
0
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -15,32 +15,32 @@ module VagrantPlugins
|
||||||
|
|
||||||
@subcommands = Vagrant::Registry.new
|
@subcommands = Vagrant::Registry.new
|
||||||
@subcommands.register(:save) do
|
@subcommands.register(:save) do
|
||||||
require File.expand_path("../save", __FILE__)
|
require_relative "save"
|
||||||
Save
|
Save
|
||||||
end
|
end
|
||||||
|
|
||||||
@subcommands.register(:restore) do
|
@subcommands.register(:restore) do
|
||||||
require File.expand_path("../restore", __FILE__)
|
require_relative "restore"
|
||||||
Restore
|
Restore
|
||||||
end
|
end
|
||||||
|
|
||||||
@subcommands.register(:delete) do
|
@subcommands.register(:delete) do
|
||||||
require File.expand_path("../delete", __FILE__)
|
require_relative "delete"
|
||||||
Delete
|
Delete
|
||||||
end
|
end
|
||||||
|
|
||||||
@subcommands.register(:list) do
|
@subcommands.register(:list) do
|
||||||
require File.expand_path("../list", __FILE__)
|
require_relative "list"
|
||||||
List
|
List
|
||||||
end
|
end
|
||||||
|
|
||||||
@subcommands.register(:push) do
|
@subcommands.register(:push) do
|
||||||
require File.expand_path("../push", __FILE__)
|
require_relative "push"
|
||||||
Push
|
Push
|
||||||
end
|
end
|
||||||
|
|
||||||
@subcommands.register(:pop) do
|
@subcommands.register(:pop) do
|
||||||
require File.expand_path("../pop", __FILE__)
|
require_relative "pop"
|
||||||
Pop
|
Pop
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -7,7 +7,7 @@ module VagrantPlugins
|
||||||
description "The `snapshot` command gives you a way to manage snapshots."
|
description "The `snapshot` command gives you a way to manage snapshots."
|
||||||
|
|
||||||
command("snapshot") do
|
command("snapshot") do
|
||||||
require File.expand_path("../command/root", __FILE__)
|
require_relative "command/root"
|
||||||
Command::Root
|
Command::Root
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue