Allow creating multiple easy commands
This commit is contained in:
parent
63ed57e880
commit
dc4f6e1939
|
@ -5,9 +5,6 @@ module Vagrant
|
|||
# Base class for all easy commands. This contains the basic code
|
||||
# that knows how to run the easy commands.
|
||||
class CommandBase < Vagrant::Command::Base
|
||||
@command = nil
|
||||
@runner = nil
|
||||
|
||||
# This is called by the {EasyCommand.create} method when creating
|
||||
# an easy command to set the invocation command.
|
||||
def self.configure(name, &block)
|
||||
|
@ -18,6 +15,8 @@ module Vagrant
|
|||
def initialize(*args, &block)
|
||||
super
|
||||
|
||||
@command = self.class.instance_variable_get(:@command)
|
||||
@runner = self.class.instance_variable_get(:@runner)
|
||||
@logger = Log4r::Logger.new("vagrant::easy_command::#{@command}")
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue