Sha256: 40435d311f18bc65ce66da93388e4fd59eacb93bf98df18ed3ed522d2a3b96e3

Contents?: true

Size: 632 Bytes

Versions: 27

Compression:

Stored size: 632 Bytes

Contents

# typed: strict
# frozen_string_literal: true

module Tapioca
  module Commands
    class DslCompilerList < AbstractDsl
      private

      sig { override.void }
      def execute
        load_application

        say("")
        say("Loaded DSL compiler classes:")
        say("")

        table = pipeline.compilers.map do |compiler|
          status = if pipeline.active_compilers.include?(compiler)
            set_color("enabled", :green)
          else
            set_color("disabled", :red)
          end

          [compiler.name, status]
        end

        print_table(table, { indent: 2 })
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
tapioca-0.16.8 lib/tapioca/commands/dsl_compiler_list.rb
tapioca-0.16.7 lib/tapioca/commands/dsl_compiler_list.rb
tapioca-0.16.6 lib/tapioca/commands/dsl_compiler_list.rb
tapioca-0.16.5 lib/tapioca/commands/dsl_compiler_list.rb
tapioca-0.16.4 lib/tapioca/commands/dsl_compiler_list.rb
tapioca-0.16.3 lib/tapioca/commands/dsl_compiler_list.rb
tapioca-0.16.2 lib/tapioca/commands/dsl_compiler_list.rb
tapioca-0.16.1 lib/tapioca/commands/dsl_compiler_list.rb
tapioca-0.16.0 lib/tapioca/commands/dsl_compiler_list.rb
tapioca-0.15.1 lib/tapioca/commands/dsl_compiler_list.rb
tapioca-0.15.0 lib/tapioca/commands/dsl_compiler_list.rb
tapioca-0.14.4 lib/tapioca/commands/dsl_compiler_list.rb
tapioca-0.14.3 lib/tapioca/commands/dsl_compiler_list.rb
tapioca-0.13.3 lib/tapioca/commands/dsl_compiler_list.rb
tapioca-0.13.2 lib/tapioca/commands/dsl_compiler_list.rb
tapioca-0.13.1 lib/tapioca/commands/dsl_compiler_list.rb
tapioca-0.13.0 lib/tapioca/commands/dsl_compiler_list.rb
tapioca-0.12.0 lib/tapioca/commands/dsl_compiler_list.rb
tapioca-0.11.17 lib/tapioca/commands/dsl_compiler_list.rb
tapioca-0.11.16 lib/tapioca/commands/dsl_compiler_list.rb