vaguerent/lib/vagrant/easy_command.rb
Mitchell Hashimoto 1d7e02cd63 Build up some operations that can be run.
These are heavily inspired by Fabric! Thanks!
2012-05-05 19:28:50 -07:00

17 lines
523 B
Ruby

module Vagrant
module EasyCommand
autoload :Base, "vagrant/easy_command/base"
autoload :Operations, "vagrant/easy_command/operations"
# This creates a new easy command. This typically is not called
# directly. Instead, the plugin interface's `easy_command` is
# used to create one of these.
def self.create(name, &block)
# Create a new command class for this command, and return it
command = Class.new(Base)
command.configure(name, &block)
command
end
end
end