Sha256: 3e1e4e57127f9dcdab8f26d9337194097e1e7f1b4c2b254a80281b8cbe71e703

Contents?: true

Size: 396 Bytes

Versions: 12

Compression:

Stored size: 396 Bytes

Contents

require "log4r"

module VagrantPlugins
  module OVirtProvider
    module Action
      class IsCreated
        def initialize(app, env)
          @app = app
          @logger = Log4r::Logger.new("vagrant_ovirt4::action::is_created")
        end

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
vagrant-ovirt4-2.2.0 lib/vagrant-ovirt4/action/is_created.rb
vagrant-ovirt4-2.1.3 lib/vagrant-ovirt4/action/is_created.rb
vagrant-ovirt4-2.1.0 lib/vagrant-ovirt4/action/is_created.rb
vagrant-ovirt4-2.0.0 lib/vagrant-ovirt4/action/is_created.rb
vagrant-ovirt4-1.2.3 lib/vagrant-ovirt4/action/is_created.rb
vagrant-ovirt4-1.2.2 lib/vagrant-ovirt4/action/is_created.rb
vagrant-ovirt4-1.2.1 lib/vagrant-ovirt4/action/is_created.rb
vagrant-ovirt4-1.2.0 lib/vagrant-ovirt4/action/is_created.rb
vagrant-ovirt4-1.1.0 lib/vagrant-ovirt4/action/is_created.rb
vagrant-ovirt4-1.0.2 lib/vagrant-ovirt4/action/is_created.rb
vagrant-ovirt4-1.0.1 lib/vagrant-ovirt4/action/is_created.rb
vagrant-ovirt4-1.0.0 lib/vagrant-ovirt4/action/is_created.rb