Sha256: ef565a333e0bc6c485ef4cd05cc022b3a1bdeb03c5f4d84e18b73304dbfa4d0b

Contents?: true

Size: 742 Bytes

Versions: 12

Compression:

Stored size: 742 Bytes

Contents

#!/usr/bin/env ruby
# coding: utf-8

# major include
require 'splash/dependencies'
require 'splash/cli'

#inhibit warning : due to prometheus-client call to URI.encode warning
$-w = nil

include Splash::Dependencies
include Splash::Helpers
include Splash::Exiter
include Splash::Loggers
include Splash::Config

# auto setup
unless verify_file(name: CONFIG_FILE, mode: "644", owner: user_root, group: group_root).empty? then
  puts 'Splash need reconfiguration : Auto setup launch'

  if is_root? then
    acase = setupsplash
    splash_exit acase
  else
    puts 'ERROR : auto setup not start, because your not root, please run as root :'
    puts '(sudo or rvmsudo) splash [conf setup]'
    exit 50
  end
end

# running Thor
CLI.start(ARGV)

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
prometheus-splash-0.9.1 bin/splash
prometheus-splash-0.9.0 bin/splash
prometheus-splash-0.8.6 bin/splash
prometheus-splash-0.8.5 bin/splash
prometheus-splash-0.8.4 bin/splash
prometheus-splash-0.8.3 bin/splash
prometheus-splash-0.8.2 bin/splash
prometheus-splash-0.8.1 bin/splash
prometheus-splash-0.8.0 bin/splash
prometheus-splash-0.7.0 bin/splash
prometheus-splash-0.6.1 bin/splash
prometheus-splash-0.6.0 bin/splash