Proper subclassing for box subcommand
This commit is contained in:
parent
e5374b912e
commit
8f891630d6
|
@ -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"
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue