Sha256: 0fed1e05a75f9d5516b54e01ba4083234ec3324ed55541d6ac13d7c7df5da1fe
Contents?: true
Size: 740 Bytes
Versions: 16
Compression:
Stored size: 740 Bytes
Contents
module Vagrant # This class handles commands from the command line program `vagrant` # and redirects them to the proper sub-command, setting up the environment # and executing. class Command attr_reader :env class << self # Executes a given subcommand within the current environment (from the # current working directory). def execute(*args) env = Environment.load! env.commands.subcommand(*args) end end def initialize(env) @env = env end # Execute a subcommand with the given name and args. This method properly # finds the subcommand, instantiates it, and executes. def subcommand(*args) Commands::Base.dispatch(env, *args) end end end
Version data entries
16 entries across 16 versions & 2 rubygems