Sha256: c2ff76302f0a53effb86c52836fe79a1929ef2f8f2b7d5c30935c2ab12a1a09c

Contents?: true

Size: 1.19 KB

Versions: 20

Compression:

Stored size: 1.19 KB

Contents

require 'pathname'
require 'vagrant/action/builder'

module VagrantPlugins
  module Invade
    module Action

      # This middleware sequence will only validate the invade configuration file
      def self.validate
        Vagrant::Action::Builder.new.tap do |builder|
          builder.use Config
          builder.use Validate
        end
      end

      # This middleware sequence will validate and build the Vagrantfile
      def self.build
        Vagrant::Action::Builder.new.tap do |builder|
          builder.use Config
          builder.use Validate
          builder.use Generate
          builder.use Create
        end
      end

      # This middleware sequence will init a InVaDE configuration file
      def self.init
        Vagrant::Action::Builder.new.tap do |builder|
          builder.use Init
        end
      end

      # The autoload farm
      action_root = Pathname.new(File.expand_path("../action", __FILE__))
      autoload :Init, action_root.join("init")
      autoload :Config, action_root.join("config")
      autoload :Validate, action_root.join("validate")
      autoload :Generate, action_root.join("generate")
      autoload :Create, action_root.join("create")
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
vagrant-invade-0.5.5 lib/vagrant-invade/action.rb
vagrant-invade-0.5.4 lib/vagrant-invade/action.rb
vagrant-invade-0.5.3 lib/vagrant-invade/action.rb
vagrant-invade-0.5.2 lib/vagrant-invade/action.rb
vagrant-invade-0.5.1 lib/vagrant-invade/action.rb
vagrant-invade-0.5.0 lib/vagrant-invade/action.rb
vagrant-invade-0.4.8 lib/vagrant-invade/action.rb
vagrant-invade-0.4.7 lib/vagrant-invade/action.rb
vagrant-invade-0.4.6 lib/vagrant-invade/action.rb
vagrant-invade-0.4.5 lib/vagrant-invade/action.rb
vagrant-invade-0.4.4 lib/vagrant-invade/action.rb
vagrant-invade-0.4.3 lib/vagrant-invade/action.rb
vagrant-invade-0.4.2 lib/vagrant-invade/action.rb
vagrant-invade-0.4.1 lib/vagrant-invade/action.rb
vagrant-invade-0.4.0 lib/vagrant-invade/action.rb
vagrant-invade-0.4.0.pre.alpha lib/vagrant-invade/action.rb
vagrant-invade-0.3.4 lib/vagrant-invade/action.rb
vagrant-invade-0.3.3 lib/vagrant-invade/action.rb
vagrant-invade-0.3.2 lib/vagrant-invade/action.rb
vagrant-invade-0.3.0 lib/vagrant-invade/action.rb