From 8f891630d64bf8e5e2c609711b26e7d0b12d0d60 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 13 Apr 2010 17:11:51 -0700 Subject: [PATCH] Proper subclassing for box subcommand --- lib/vagrant/commands/box.rb | 2 +- lib/vagrant/commands/box/add.rb | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/vagrant/commands/box.rb b/lib/vagrant/commands/box.rb index cb77b076b..fbfcaea95 100644 --- a/lib/vagrant/commands/box.rb +++ b/lib/vagrant/commands/box.rb @@ -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" diff --git a/lib/vagrant/commands/box/add.rb b/lib/vagrant/commands/box/add.rb index 6545dd578..30fdf6235 100644 --- a/lib/vagrant/commands/box/add.rb +++ b/lib/vagrant/commands/box/add.rb @@ -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)