Sha256: 0f4c7dc5c8b943301331990b33d45642f82b725b0cf77b3f720527cbcb421be1

Contents?: true

Size: 612 Bytes

Versions: 180

Compression:

Stored size: 612 Bytes

Contents

# frozen_string_literal: true

require 'avm/tools/core_ext'

module Avm
  module Tools
    class Runner
      class ApplicationStereotypes
        class List
          runner_with :help, :output

          def run
            infov 'Found', stereotypes.count
            run_output
          end

          def output_content
            stereotypes.map { |s| "#{s}\n" }.join
          end

          private

          def stereotypes
            ::Avm::Registry.application_stereotypes.available
              .sort_by { |s| [s.name, s.namespace_module] }
          end
        end
      end
    end
  end
end

Version data entries

180 entries across 180 versions & 2 rubygems

Version Path
avm-tools-0.162.0 lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.94.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
avm-tools-0.161.0 lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.86.5 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
avm-tools-0.160.2 lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.86.4 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.86.3 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
avm-tools-0.160.1 lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.86.2 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.86.1 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
avm-tools-0.160.0 lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.86.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.85.1 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
avm-tools-0.159.1 lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.85.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.84.2 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.84.1 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.84.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.83.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
avm-tools-0.159.0 lib/avm/tools/runner/application_stereotypes/list.rb