dhgwilliam/hiera-browser

View on GitHub
bin/hiera-browser

Summary

Maintainability
Test Coverage
#!/usr/bin/env ruby

ENV['RACK_ENV'] = 'production'

require 'rack'
require 'rack/server'
require 'app/ui'

if ENV['HIERA_YAML'] && File.exist?(ENV['HIERA_YAML'])
  Rack::Server.start :app => HieraBrowserUI,
    :Port => '5215'

else
  puts "Must provide the location of your hiera.yaml as ENV['HIERA_YAML']"
end