#!/usr/bin/env ruby

require "securerandom"
require "thor"

dir = File.expand_path("../../", __FILE__)
ENV["BUNDLE_GEMFILE"] ||= File.join(dir, "Gemfile.production")
ENV["SECRET_KEY_BASE"] ||= SecureRandom.hex(64)
ENV["RAILS_ENV"] ||= "production"

require File.join(dir, "lib/fluentd-ui/command.rb")

FluentdUI::Command.start(ARGV)
