class => module Action
This commit is contained in:
parent
3edb9c2269
commit
b878f1bd66
|
@ -1,10 +1,8 @@
|
|||
require 'log4r'
|
||||
|
||||
require 'vagrant/action/builder'
|
||||
require 'vagrant/action/builtin'
|
||||
|
||||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
autoload :Environment, 'vagrant/action/environment'
|
||||
autoload :Registry, 'vagrant/action/registry'
|
||||
autoload :Runner, 'vagrant/action/runner'
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
require 'fileutils'
|
||||
|
||||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module Box
|
||||
class Destroy
|
||||
def initialize(app, env)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module Box
|
||||
class Download
|
||||
BASENAME = "box"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
require 'vagrant/action/general/package'
|
||||
|
||||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module Box
|
||||
# Packages a box which has already been unpackaged (such as
|
||||
# for the `vagrant box repackage` command) by leveraging the
|
||||
|
|
|
@ -2,7 +2,7 @@ require 'fileutils'
|
|||
require 'archive/tar/minitar'
|
||||
|
||||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module Box
|
||||
# Unpackages a downloaded box to a given directory with a given
|
||||
# name.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module Box
|
||||
class Verify
|
||||
def initialize(app, env)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
# Action builder which provides a nice DSL for building up
|
||||
# a middleware sequence for Vagrant actions. This code is based
|
||||
# heavily off of `Rack::Builder` and `ActionDispatch::MiddlewareStack`
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
# Registers the builtin actions with a specific registry.
|
||||
#
|
||||
# These are the pre-built action sequences that are shipped with
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module Env
|
||||
# A middleware which just sets up the environment with some
|
||||
# options which are passed to it.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
require 'vagrant/util/hash_with_indifferent_access'
|
||||
|
||||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
# Represents an action environment which is what is passed
|
||||
# to the `call` method of each action. This environment contains
|
||||
# some helper methods for accessing the environment as well
|
||||
|
|
|
@ -2,7 +2,7 @@ require 'fileutils'
|
|||
require 'archive/tar/minitar'
|
||||
|
||||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module General
|
||||
# A general packaging (tar) middleware. Given the following options,
|
||||
# it will do the right thing:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module General
|
||||
# Simply validates the configuration of the current Vagrant
|
||||
# environment.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
# This is the action registry, which stores action steps indexed
|
||||
# by a unique name. These registry names can be used to call actions
|
||||
# via the `Runner` class.
|
||||
|
|
|
@ -6,7 +6,7 @@ require 'vagrant/util/busy'
|
|||
# * env.lock
|
||||
|
||||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
class Runner
|
||||
@@reported_interrupt = false
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module VM
|
||||
class Boot
|
||||
def initialize(app, env)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module VM
|
||||
class CheckAccessible
|
||||
def initialize(app, env)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module VM
|
||||
class CheckBox
|
||||
def initialize(app, env)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module VM
|
||||
# Middleware which verifies that the VM has the proper guest additions
|
||||
# installed and prints a warning if they're not detected or if the
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
require 'fileutils'
|
||||
|
||||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module VM
|
||||
# Cleans up the VirtualBox machine folder for any ".xml-prev"
|
||||
# files which VirtualBox may have left over. This is a bug in
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module VM
|
||||
class ClearForwardedPorts
|
||||
def initialize(app, env)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
require File.expand_path("../nfs_helpers", __FILE__)
|
||||
|
||||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module VM
|
||||
class ClearNFSExports
|
||||
include NFSHelpers
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module VM
|
||||
class ClearSharedFolders
|
||||
def initialize(app, env)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module VM
|
||||
class Customize
|
||||
def initialize(app, env)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module VM
|
||||
class Destroy
|
||||
def initialize(app, env)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module VM
|
||||
# Destroys the unused host only interfaces. This middleware cleans
|
||||
# up any created host only networks.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module VM
|
||||
# Discards the saved state of the VM if its saved. If its
|
||||
# not saved, does nothing.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
require 'fileutils'
|
||||
|
||||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module VM
|
||||
class Export
|
||||
attr_reader :temp_dir
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
require File.join(File.dirname(__FILE__), 'forward_ports_helpers')
|
||||
|
||||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module VM
|
||||
class ForwardPorts
|
||||
include ForwardPortsHelpers
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module VM
|
||||
# Helper methods for forwarding ports. Requires that the environment
|
||||
# is set to the `@env` instance variable.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module VM
|
||||
class Halt
|
||||
def initialize(app, env, options=nil)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module VM
|
||||
class HostName
|
||||
def initialize(app, env)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module VM
|
||||
class Import
|
||||
def initialize(app, env)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module VM
|
||||
class MatchMACAddress
|
||||
def initialize(app, env)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module VM
|
||||
# This class allows other actions on the virtual machine object
|
||||
# to be consolidated under a single write lock. This vastly speeds
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module VM
|
||||
# Networking middleware for Vagrant. This enables host only
|
||||
# networking on VMs if configured as such.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
require File.expand_path("../nfs_helpers", __FILE__)
|
||||
|
||||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module VM
|
||||
# Enables NFS based shared folders. `nfsd` must already be installed
|
||||
# on the host machine, and NFS client must already be installed on
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module VM
|
||||
module NFSHelpers
|
||||
def clear_nfs_exports(env)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
require 'vagrant/action/general/package'
|
||||
|
||||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module VM
|
||||
# A subclass of {General::Package} which simply makes sure that
|
||||
# the package directory is set to the directory which the VM
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module VM
|
||||
# Puts a generated Vagrantfile into the package directory so that
|
||||
# it can be included in the package.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module VM
|
||||
class Provision
|
||||
def initialize(app, env)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module VM
|
||||
class ProvisionerCleanup
|
||||
def initialize(app, env)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module VM
|
||||
class Resume
|
||||
def initialize(app, env)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module VM
|
||||
class ShareFolders
|
||||
def initialize(app, env)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
module VM
|
||||
class Suspend
|
||||
def initialize(app, env)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
require "log4r"
|
||||
|
||||
module Vagrant
|
||||
class Action
|
||||
module Action
|
||||
# The action warden is a middleware which injects itself between
|
||||
# every other middleware, watching for exceptions which are raised
|
||||
# and performing proper cleanup on every action by calling the `recover`
|
||||
|
|
Loading…
Reference in New Issue