Sha256: 27bd0abcc39cfa558a41410c9ed25017fdce81befe88544f4d9cf49669d799c2

Contents?: true

Size: 739 Bytes

Versions: 3

Compression:

Stored size: 739 Bytes

Contents

module VagrantPlugins

    module ProviderVirtualBox

        module Action

            class MessageSnapshotNotCreated

                def initialize(app, env)
                    @app = app
                end

                def call(env)

                    if env[:snap_name].nil?
                        env[:ui].info I18n.t("vagrant_snap.actions.vm.snapshot_not_created.not_created")
                    else
                        env[:ui].info(I18n.t("vagrant_snap.actions.vm.snapshot_not_created.named_not_exist",
                            :snapshot => env[:snap_name]),
                        )
                    end

                    @app.call(env)

                end

            end

        end

    end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vagrant-multiprovider-snap-0.0.15 lib/vagrant-multiprovider-snap/providers/virtualbox/action/message_snapshot_not_created.rb
vagrant-multiprovider-snap-0.0.14 lib/vagrant-multiprovider-snap/providers/virtualbox/action/message_snapshot_not_created.rb
vagrant-multiprovider-snap-0.0.13 lib/vagrant-multiprovider-snap/providers/virtualbox/action/message_snapshot_not_created.rb