Sha256: c0517305d504876f6c7bb74e9f14f0adad18b2abffb3f3843614af2e548588b3

Contents?: true

Size: 313 Bytes

Versions: 9

Compression:

Stored size: 313 Bytes

Contents

module EacLauncher
  module Stereotypes
    class Rails
      include EacLauncher::Stereotype

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

        def color
          :magenta
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
eac_launcher-0.2.0 lib/eac_launcher/stereotypes/rails.rb
eac_launcher-0.1.7 lib/eac_launcher/stereotypes/rails.rb
eac_launcher-0.1.6 lib/eac_launcher/stereotypes/rails.rb
eac_launcher-0.1.5 lib/eac_launcher/stereotypes/rails.rb
eac_launcher-0.1.3 lib/eac_launcher/stereotypes/rails.rb
eac_launcher-0.1.4 lib/eac_launcher/stereotypes/rails.rb
eac_launcher-0.1.2 lib/eac_launcher/stereotypes/rails.rb
eac_launcher-0.1.1 lib/eac_launcher/stereotypes/rails.rb
eac_launcher-0.1.0 lib/eac_launcher/stereotypes/rails.rb