Sha256: ec9490f7b16ae681f057cc7c4f9e738d88fab48d46022cbfcf4846b91915c5e4

Contents?: true

Size: 433 Bytes

Versions: 10

Compression:

Stored size: 433 Bytes

Contents

module Vagrant
  class Action
    module VM
      class Customize
        def initialize(app, env)
          @app = app
        end

        def call(env)
          if !env.env.config.vm.proc_stack.empty?
            env.logger.info "Running any VM customizations..."
            env.env.config.vm.run_procs!(env["vm"].vm)
            env["vm"].vm.save
          end

          @app.call(env)
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
vagrantup-0.5.4 lib/vagrant/action/vm/customize.rb
vagrantup-0.5.3 lib/vagrant/action/vm/customize.rb
vagrantup-0.5.2 lib/vagrant/action/vm/customize.rb
vagrantup-0.5.1 lib/vagrant/action/vm/customize.rb
vagrantup-0.5.0 lib/vagrant/action/vm/customize.rb
vagrant-0.5.4 lib/vagrant/action/vm/customize.rb
vagrant-0.5.3 lib/vagrant/action/vm/customize.rb
vagrant-0.5.2 lib/vagrant/action/vm/customize.rb
vagrant-0.5.1 lib/vagrant/action/vm/customize.rb
vagrant-0.5.0 lib/vagrant/action/vm/customize.rb