Sha256: dc244c01fda97f4e3cbebb4118a31dd10293fd131401c119c1013370b9813ee3

Contents?: true

Size: 773 Bytes

Versions: 6

Compression:

Stored size: 773 Bytes

Contents

module Landrush
  module Cap
    module Linux
      class ConfigureVisibilityOnHost
        class << self
          def configure_visibility_on_host(env, ip, tld)
            env.host.capability(:install_dnsmasq) unless env.host.capability(:dnsmasq_installed)
            env.host.capability(:create_dnsmasq_config, ip, tld)
            env.host.capability(:restart_dnsmasq)
          rescue Vagrant::Errors::CapabilityNotFound => e
            env.ui.info("Your host was detected as '#{e.extra_data[:cap]}' for which the host capability " \
            "'#{e.extra_data[:cap]}' is not available.")
            env.ui.info('Check the documentation for the manual instructions to configure the visibility on the host.')
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
landrush-1.2.0 lib/landrush/cap/host/linux/configure_visibility_on_host.rb
landrush-1.1.2 lib/landrush/cap/host/linux/configure_visibility_on_host.rb
landrush-1.1.1 lib/landrush/cap/host/linux/configure_visibility_on_host.rb
landrush-1.1.0 lib/landrush/cap/host/linux/configure_visibility_on_host.rb
landrush-1.1.0.beta.4 lib/landrush/cap/host/linux/configure_visibility_on_host.rb
landrush-1.1.0.beta.3 lib/landrush/cap/host/linux/configure_visibility_on_host.rb