Sha256: d176415dea18de73ec319c6b90f41df913ab26398d8d2098ef935f0192185861

Contents?: true

Size: 296 Bytes

Versions: 2

Compression:

Stored size: 296 Bytes

Contents

module VagrantPlugins
  module Rimu
    module Actions
      class IsCreated
        def initialize(app, _env)
          @app = app
        end

        def call(env)
          env[:result] = env[:machine].state.id != :not_created
          @app.call(env)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vagrant-rimu-0.0.2 lib/vagrant-rimu/actions/is_created.rb
vagrant-rimu-0.0.1 lib/vagrant-rimu/actions/is_created.rb