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

View File

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