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.130.0 lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.17.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
avm-tools-0.129.1 lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.16.1 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
avm-tools-0.129.0 lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.16.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
avm-tools-0.128.0 lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.15.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.14.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.13.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
avm-tools-0.127.0 lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.12.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
avm-tools-0.126.0 lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.11.1 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
avm-tools-0.125.0 lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.11.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
avm-tools-0.124.0 lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.10.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
avm-tools-0.123.0 lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.9.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb