Sha256: 3cf50cacd7ef2f8e3f5f71cff15d6c2da1d10ae120ccde235efdcad677bd4392

Contents?: true

Size: 1.13 KB

Versions: 19

Compression:

Stored size: 1.13 KB

Contents

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

    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))
  end

  class CLI < Thor
    include Eucalypt::Helpers
    using Colorize
    register(Security, 'security', 'security [COMMAND]', 'Manage authentication and authorization'.colorize(:grey))
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
eucalypt-0.8.0 lib/eucalypt/security/namespaces/security/cli/security.rb
eucalypt-0.7.2 lib/eucalypt/security/namespaces/security/cli/security.rb
eucalypt-0.7.1 lib/eucalypt/security/namespaces/security/cli/security.rb
eucalypt-0.7.0 lib/eucalypt/security/namespaces/security/cli/security.rb
eucalypt-0.6.2 lib/eucalypt/security/namespaces/security/cli/security.rb
eucalypt-0.6.1 lib/eucalypt/security/namespaces/security/cli/security.rb
eucalypt-0.6.0 lib/eucalypt/security/namespaces/security/cli/security.rb
eucalypt-0.5.4 lib/eucalypt/security/namespaces/security/cli/security.rb
eucalypt-0.5.3 lib/eucalypt/security/namespaces/security/cli/security.rb
eucalypt-0.5.2 lib/eucalypt/security/namespaces/security/cli/security.rb
eucalypt-0.5.1 lib/eucalypt/security/namespaces/security/cli/security.rb
eucalypt-0.5.0 lib/eucalypt/security/namespaces/security/cli/security.rb
eucalypt-0.4.2 lib/eucalypt/security/namespaces/security/cli/security.rb
eucalypt-0.4.1 lib/eucalypt/security/namespaces/security/cli/security.rb
eucalypt-0.4.0 lib/eucalypt/security/namespaces/security/cli/security.rb
eucalypt-0.3.5 lib/eucalypt/security/namespaces/security/cli/security.rb
eucalypt-0.3.4 lib/eucalypt/security/namespaces/security/cli/security.rb
eucalypt-0.3.3 lib/eucalypt/security/namespaces/security/cli/security.rb
eucalypt-0.3.2 lib/eucalypt/security/namespaces/security/cli/security.rb