Sha256: a12805e0d7ff338eddd668ab8cd91cbc60a8be6999af8a067a5ed6eba28232aa
Contents?: true
Size: 668 Bytes
Versions: 2
Compression:
Stored size: 668 Bytes
Contents
module VagrantPlugins module HostRubyProvisioner class Provisioner < Vagrant.plugin '2', :provisioner def _execute_clean @config.clean.call end def _execute_routine @config.routine.call end def cleanup if @config.cwd routine = method :_execute_clean Dir.chdir @config.cwd, &(proc { routine.call }) else _execute_clean end end def provision if @config.cwd routine = method :_execute_routine Dir.chdir @config.cwd, &(proc { routine.call }) else _execute_routine end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vagrant-host-ruby-provisioner-0.2.0 | lib/vagrant-host-ruby-provisioner/provisioner.rb |
vagrant-host-ruby-provisioner-0.1.1 | lib/vagrant-host-ruby-provisioner/provisioner.rb |