Sha256: 5ec04df6d6138bc65be94318b4bd6aa61f2c7b58145dfefc4f35380cad058419

Contents?: true

Size: 451 Bytes

Versions: 3

Compression:

Stored size: 451 Bytes

Contents

require_relative "../GoodHosts"
module VagrantPlugins
  module GoodHosts
    module Action
      class UpdateHosts
        include GoodHosts

        def initialize(app, env)
          @app = app
          @machine = env[:machine]
          @ui = env[:ui]
        end

        def call(env)
          @ui.info "[vagrant-goodhosts] Checking for host entries"
          addHostEntries()
          @app.call(env)
        end

      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vagrant-goodhosts-1.0.8 lib/vagrant-goodhosts/Action/UpdateHosts.rb
vagrant-goodhosts-1.0.7 lib/vagrant-goodhosts/Action/UpdateHosts.rb
vagrant-goodhosts-1.0.6 lib/vagrant-goodhosts/Action/UpdateHosts.rb