class FluxboxAppsMenu::CLI

Public Class Methods

start() click to toggle source
Calls superclass method
# File lib/fluxbox_apps_menu/cli.rb, line 53
def self.start
  begin
    super
  rescue => e
    Messages.error e
    exit 1
  end
end

Public Instance Methods

build() click to toggle source
# File lib/fluxbox_apps_menu/cli.rb, line 13
def build
  FluxboxAppsMenu::Builder.new(options).create_menu
end
config() click to toggle source
# File lib/fluxbox_apps_menu/cli.rb, line 19
def config
  FluxboxAppsMenu::Builder.new(options).init_config
end
help(arg = nil) click to toggle source
Calls superclass method
# File lib/fluxbox_apps_menu/cli.rb, line 23
    def help(arg = nil)
      if arg.nil?
        puts <<EOL

FluxboxAppsMenu v.#{FluxboxAppsMenu::VERSION} by Fabio Mucciante

Description:
  Generates a menu for Fluxbox containing the applications installed
  and visible in other DE menus.

  Customizations on the building process are achieved editing the
  "fluxbox_apps_menu.yaml" file copied under the "~/.fluxbox"
  folder by the "config" task.
  Watch the online page for more info:

    https://github.com/fabiomux/fluxbox_apps_menu/wiki

  The file containing the application tree will be created by 
  default to "~/.fluxbox/menu-apps" and can be included within the
  main menu adding the line:

    [include] (~/.fluxbox/menu-apps)

EOL
        super
      else
        super arg
      end
    end