Sha256: 7fee3297a5f0a69f1880e4cd48baf6a0c933b988606d7495a45ab5c06b836699

Contents?: true

Size: 296 Bytes

Versions: 15

Compression:

Stored size: 296 Bytes

Contents

module VagrantPlugins
  module Sakura
    module Action
      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

15 entries across 15 versions & 1 rubygems

Version Path
vagrant-sakura-0.4.2 lib/vagrant-sakura/action/is_created.rb
vagrant-sakura-0.4.0 lib/vagrant-sakura/action/is_created.rb
vagrant-sakura-0.3.2 lib/vagrant-sakura/action/is_created.rb
vagrant-sakura-0.3.1 lib/vagrant-sakura/action/is_created.rb
vagrant-sakura-0.3.0 lib/vagrant-sakura/action/is_created.rb
vagrant-sakura-0.2.1 lib/vagrant-sakura/action/is_created.rb
vagrant-sakura-0.1.0 lib/vagrant-sakura/action/is_created.rb
vagrant-sakura-0.0.9 lib/vagrant-sakura/action/is_created.rb
vagrant-sakura-0.0.8 lib/vagrant-sakura/action/is_created.rb
vagrant-sakura-0.0.7 lib/vagrant-sakura/action/is_created.rb
vagrant-sakura-0.0.6 lib/vagrant-sakura/action/is_created.rb
vagrant-sakura-0.0.5 lib/vagrant-sakura/action/is_created.rb
vagrant-sakura-0.0.3 lib/vagrant-sakura/action/is_created.rb
vagrant-sakura-0.0.2 lib/vagrant-sakura/action/is_created.rb
vagrant-sakura-0.0.1 lib/vagrant-sakura/action/is_created.rb