vagrant-host-ruby-provisioner

Description

Vagrant Ruby provisioner for executing Ruby code on the host.

Installation

vagrant plugin install vagrant-host-ruby-provisioner

Usage

Vagrant.configure '2' do |configure|
  # ...

  configure.vm.provision :host_ruby do |ruby|
    ruby.routine = lambda { puts 'Hello world!' }
  end

  # ...
end

Configuration

  • clean: The cleanup routine to be executed. Default: lambda {}.
  • cwd: The current working directory. Default: nil (which makes it the directory containing "Vagrantfile").
  • routine: The main routine to be executed. Default: lambda {}.

Tests

Given the size and scope of this project, I don't see any immediate need for tests. Feel free to disagree :) .

Contributors

Jonathan Barronville

License

See "LICENSE".