lib/eucalypt/security/namespaces/security/cli/security.rb in eucalypt-0.3.1 vs lib/eucalypt/security/namespaces/security/cli/security.rb in eucalypt-0.3.2

- old
+ new

@@ -1,22 +1,20 @@ require 'eucalypt/errors' require 'eucalypt/security/namespaces/security-warden/cli/security-warden' require 'eucalypt/security/namespaces/security-pundit/cli/security-pundit' require 'eucalypt/security/namespaces/security-policy/cli/security-policy' require 'eucalypt/helpers' +require 'eucalypt/list' module Eucalypt class Security < Thor include Thor::Actions include Eucalypt::Helpers using Colorize + extend Eucalypt::List - class << self - require 'eucalypt/list' - include Eucalypt::List - def banner(task, namespace = false, subcommand = true) - basename + ' ' + task.formatted_usage(self, true, subcommand).split(':').join(' ') - end + def self.banner(task, namespace = false, subcommand = true) + basename + ' ' + task.formatted_usage(self, true, subcommand).split(':').join(' ') end register(Eucalypt::SecurityWarden, 'warden', 'warden [COMMAND]', 'Configure Warden authentication'.colorize(:grey)) register(Eucalypt::SecurityPundit, 'pundit', 'pundit [COMMAND]', 'Configure Pundit authorization'.colorize(:grey)) register(Eucalypt::SecurityPolicy, 'policy', 'policy [COMMAND]', 'Pundit policy commands'.colorize(:grey)) \ No newline at end of file