Proper subclassing for box subcommand

This commit is contained in:
Mitchell Hashimoto 2010-04-13 17:11:51 -07:00
parent e5374b912e
commit 8f891630d6
2 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ module Vagrant
# and remove boxes. This single command, given an array, determines
# which action to take and calls the respective action method
# (see {box_add} and {box_remove})
class Box < Base
class BoxCommand < Base
Base.subcommand "box", self
description "Box commands"

View File

@ -4,9 +4,9 @@ module Vagrant
# and remove boxes. This single command, given an array, determines
# which action to take and calls the respective action method
# (see {box_add} and {box_remove})
class Box
class Add < Base
Box.subcommand "add", self
module Box
class Add < BoxCommand
BoxCommand.subcommand "add", self
description "Add a box"
def execute(args)