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
eac_tools-0.37.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
avm-tools-0.141.0 lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.36.1 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
avm-tools-0.140.0 lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.36.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
avm-tools-0.139.0 lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.35.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
avm-tools-0.138.0 lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.34.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
avm-tools-0.137.0 lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.33.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.32.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
avm-tools-0.136.2 lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.31.1 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.31.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
avm-tools-0.136.1 lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.30.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.29.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
avm-tools-0.136.0 lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.28.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb