Sha256: 1f8f852e55a7db984987d33893d4248f91a6b0aa593e88203c677c9688bfffad

Contents?: true

Size: 1007 Bytes

Versions: 3

Compression:

Stored size: 1007 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 :stopweb, options
      splash_exit acase
    end

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







    # Thor method : getting execution status of Splash WebAdmin
    long_desc <<-LONGDESC
    Starting Splash Daemon\n
    LONGDESC
    option :foreground, :type => :boolean,  :aliases => "-F"
    desc "start", "Splash WebAdmin Daemon status"
    def start
      acase = run_as_root :startweb, options
      splash_exit acase
    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
prometheus-splash-0.9.1 lib/splash/cli/webadmin.rb
prometheus-splash-0.9.0 lib/splash/cli/webadmin.rb
prometheus-splash-0.8.6 lib/splash/cli/webadmin.rb