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.55.2 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
avm-tools-0.145.1 lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.55.1 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
avm-tools-0.145.0 lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.55.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
avm-tools-0.144.0 lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.54.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.53.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.52.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.51.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
avm-tools-0.143.0 lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.50.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.49.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
avm-tools-0.142.8 lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.48.1 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.48.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.47.2 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
avm-tools-0.142.7 lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.47.1 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.47.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb