Sha256: ea437bb07bf4adfda4a8f928387e3feebe8eefbff88456e2f476f3623d12939b

Contents?: true

Size: 946 Bytes

Versions: 3

Compression:

Stored size: 946 Bytes

Contents

# coding: utf-8

# module for all Thor subcommands
module CLISplash

  # Thor inherited class for Processes management
  class WebAdmin < Thor
    include Splash::WebAdmin::Controller
    include Splash::Config
    include Splash::Exiter
    include Splash::Helpers


    # Thor method : stopping Splash Webadmin
    desc "stop", "Stopping Splash Webadmin Daemon"
    def stop
      acase = run_as_root :stopdaemon, options
      splash_exit acase
    end

    # Thor method : getting execution status of Splashd
    desc "status", "Splash WebAdmin Daemon status"
    def status
      acase = run_as_root :statusdaemon, options
      splash_exit acase
    end







    # Thor method : getting execution status of Splash WebAdmin
    long_desc <<-LONGDESC
    Starting Splash Daemon\n
    LONGDESC
    desc "start", "Splash WebAdmin Daemon status"
    def start
      acase = run_as_root :startdaemon
      splash_exit acase
    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
prometheus-splash-0.7.0 lib/splash/cli/webadmin.rb
prometheus-splash-0.6.1 lib/splash/cli/webadmin.rb
prometheus-splash-0.6.0 lib/splash/cli/webadmin.rb