Sha256: 184476a3067ca9f191b986eddcb3f81dc15cb9438f853f94ff249785ccd1ab05
Contents?: true
Size: 447 Bytes
Versions: 6
Compression:
Stored size: 447 Bytes
Contents
# frozen_string_literal: true module VagrantPlugins module Packet module Action # This can be used with "Call" built-in to check if the machine # is created and branch in the middleware. 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
6 entries across 6 versions & 1 rubygems