Sha256: 67b8f1b9845395ac618f4259de8402e03c013bbe3e3aa506c069d704b9c17c4a

Contents?: true

Size: 740 Bytes

Versions: 3

Compression:

Stored size: 740 Bytes

Contents

module HashiCorp

    module VagrantVMwareworkstation

        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/vmware_workstation/action/message_snapshot_not_created.rb
vagrant-multiprovider-snap-0.0.14 lib/vagrant-multiprovider-snap/providers/vmware_workstation/action/message_snapshot_not_created.rb
vagrant-multiprovider-snap-0.0.13 lib/vagrant-multiprovider-snap/providers/vmware_workstation/action/message_snapshot_not_created.rb