Sha256: a65f08f4cd4c8dea7755d75f242cc6716bbde0008d262c522c9c64cc2fbceca9

Contents?: true

Size: 501 Bytes

Versions: 153

Compression:

Stored size: 501 Bytes

Contents

# frozen_string_literal: true

require 'avm/projects/stereotype'
require 'eac_ruby_utils/core_ext'

module Avm
  module Projects
    module Stereotypes
      class RailsApplication
        require_sub __FILE__
        include Avm::Projects::Stereotype

        class << self
          def match?(path)
            File.exist?(path.real.subpath('config.ru')) && path.real.basename != 'dummy'
          end

          def color
            :magenta
          end
        end
      end
    end
  end
end

Version data entries

153 entries across 153 versions & 2 rubygems

Version Path
avm-tools-0.139.0 lib/avm/projects/stereotypes/rails_application.rb
eac_tools-0.35.0 sub/avm-tools/lib/avm/projects/stereotypes/rails_application.rb
avm-tools-0.138.0 lib/avm/projects/stereotypes/rails_application.rb
eac_tools-0.34.0 sub/avm-tools/lib/avm/projects/stereotypes/rails_application.rb
avm-tools-0.137.0 lib/avm/projects/stereotypes/rails_application.rb
eac_tools-0.33.0 sub/avm-tools/lib/avm/projects/stereotypes/rails_application.rb
eac_tools-0.32.0 sub/avm-tools/lib/avm/projects/stereotypes/rails_application.rb
avm-tools-0.136.2 lib/avm/projects/stereotypes/rails_application.rb
eac_tools-0.31.1 sub/avm-tools/lib/avm/projects/stereotypes/rails_application.rb
eac_tools-0.31.0 sub/avm-tools/lib/avm/projects/stereotypes/rails_application.rb
avm-tools-0.136.1 lib/avm/projects/stereotypes/rails_application.rb
eac_tools-0.30.0 sub/avm-tools/lib/avm/projects/stereotypes/rails_application.rb
eac_tools-0.29.0 sub/avm-tools/lib/avm/projects/stereotypes/rails_application.rb
avm-tools-0.136.0 lib/avm/projects/stereotypes/rails_application.rb
eac_tools-0.28.0 sub/avm-tools/lib/avm/projects/stereotypes/rails_application.rb
eac_tools-0.27.2 sub/avm-tools/lib/avm/projects/stereotypes/rails_application.rb
eac_tools-0.27.1 sub/avm-tools/lib/avm/projects/stereotypes/rails_application.rb
avm-tools-0.135.0 lib/avm/projects/stereotypes/rails_application.rb
eac_tools-0.27.0 sub/avm-tools/lib/avm/projects/stereotypes/rails_application.rb
avm-tools-0.134.0 lib/avm/projects/stereotypes/rails_application.rb