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.46.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.45.2 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
avm-tools-0.142.6 lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.45.1 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
avm-tools-0.142.5 lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.45.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.44.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.43.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.42.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.41.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.40.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
avm-tools-0.142.4 lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.39.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
avm-tools-0.142.3 lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.38.0 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
avm-tools-0.142.2 lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.37.2 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
avm-tools-0.142.1 lib/avm/tools/runner/application_stereotypes/list.rb
eac_tools-0.37.1 sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
avm-tools-0.142.0 lib/avm/tools/runner/application_stereotypes/list.rb