Sha256: 46a561f55a1579930140965727e218182731173953cb3dc6157a056487576c3a
Contents?: true
Size: 839 Bytes
Versions: 1
Compression:
Stored size: 839 Bytes
Contents
module VagrantPlugins module ShellCommander # Action for shell command hooking class Action include Vagrant::Action::Builtin # Constructor # # @param app [Action] Next middleware to call # @param env [Hash] Action environment # @return nil # def initialize(app, env) @app = app @machine = env[:machine] end # Call method of this middleware # # @param env [Hash] Action environment # @return nil # def call(env) @app.call(env) unless env[:global_config].sh.after_share_folders.nil? @machine.action(:ssh_run, ssh_run_command: env[:global_config].sh.after_share_folders, ssh_opts: {extra_args: []}) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-shell-commander-0.3.0 | lib/vagrant-shell-commander/action.rb |