lib/vagrant-notify/action.rb in vagrant-notify-0.3.0 vs lib/vagrant-notify/action.rb in vagrant-notify-0.4.0

- old
+ new

@@ -1,27 +1,16 @@ require_relative 'action/check_provider' require_relative 'action/install_command' +require_relative 'action/notify_provisioning_status' require_relative 'action/prepare_data' require_relative 'action/server_is_running' +require_relative 'action/set_shared_folder' require_relative 'action/start_server' require_relative 'action/stop_server' module Vagrant module Notify module Action - class SetSharedFolder - def initialize(app, env) - @app = app - end - - def call(env) - host_dir = Pathname("/tmp/vagrant-notify/#{env[:machine].id}") - FileUtils.mkdir_p host_dir.to_s unless host_dir.exist? - env[:machine].config.vm.synced_folder host_dir, "/tmp/vagrant-notify", id: "vagrant-notify" - @app.call(env) - end - end - class << self Call = Vagrant::Action::Builtin::Call def action_start_server Vagrant::Action::Builder.new.tap do |b|