commands/snapshot: use require relative

This commit is contained in:
Mitchell Hashimoto 2015-10-08 10:40:46 -04:00
parent 9e371277a9
commit 0a52e06298
3 changed files with 8 additions and 7 deletions

View File

@ -16,6 +16,7 @@ module VagrantPlugins
end
end
# Success, exit with 0
0
end

View File

@ -15,32 +15,32 @@ module VagrantPlugins
@subcommands = Vagrant::Registry.new
@subcommands.register(:save) do
require File.expand_path("../save", __FILE__)
require_relative "save"
Save
end
@subcommands.register(:restore) do
require File.expand_path("../restore", __FILE__)
require_relative "restore"
Restore
end
@subcommands.register(:delete) do
require File.expand_path("../delete", __FILE__)
require_relative "delete"
Delete
end
@subcommands.register(:list) do
require File.expand_path("../list", __FILE__)
require_relative "list"
List
end
@subcommands.register(:push) do
require File.expand_path("../push", __FILE__)
require_relative "push"
Push
end
@subcommands.register(:pop) do
require File.expand_path("../pop", __FILE__)
require_relative "pop"
Pop
end
end

View File

@ -7,7 +7,7 @@ module VagrantPlugins
description "The `snapshot` command gives you a way to manage snapshots."
command("snapshot") do
require File.expand_path("../command/root", __FILE__)
require_relative "command/root"
Command::Root
end
end