bin/sensu-dashboard in sensu-dashboard-0.9.8 vs bin/sensu-dashboard in sensu-dashboard-0.9.9

- old
+ new

@@ -1,9 +1,10 @@ #!/usr/bin/env ruby -begin - require 'sensu-dashboard/app.rb' -rescue LoadError => e - require 'rubygems' - path = File.expand_path '../../lib', __FILE__ - $:.unshift(path) if File.directory?(path) && !$:.include?(path) - require 'sensu-dashboard/app.rb' + +unless $:.include?(File.dirname(__FILE__) + '/../lib/') + $: << File.dirname(__FILE__) + '/../lib' end + +require 'sensu-dashboard/server' + +options = Sensu::CLI.read +Sensu::Dashboard::Server.run(options)