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
|
# 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"
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue