Sha256: 99120c355303839371db17f1b0b706e133f9601aa165d343121279d5cc4276ae

Contents?: true

Size: 536 Bytes

Versions: 2

Compression:

Stored size: 536 Bytes

Contents

require "log4r"

module VagrantPlugins
  module ManagedServers
    module Action
      class InitDeploymentTracker
        def initialize(app, _env)
          @app    = app
          @logger = Log4r::Logger.new("vagrant_managed_servers::action::init_deployment_tracker")
        end

        def call(env)
          host = env[:tracker_host]
          return unless host
          SwaggerClient::Swagger.configure do |config|
            config.host = host
          end
          @app.call(env)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vagrant-orchestrate-0.7.0.pre.1 lib/vagrant-managed-servers/action/init_deployment_tracker.rb
vagrant-orchestrate-0.7.0.pre lib/vagrant-managed-servers/action/init_deployment_tracker.rb