Class: EacLauncher::Stereotypes::Rails

Inherits:
Object
  • Object
show all
Includes:
EacLauncher::Stereotype
Defined in:
lib/eac_launcher/stereotypes/rails.rb

Class Method Summary collapse

Methods included from EacLauncher::Stereotype

git_stereotypes, included, nogit_stereotypes

Class Method Details

.colorObject



15
16
17
# File 'lib/eac_launcher/stereotypes/rails.rb', line 15

def color
  :magenta
end

.match?(path) ⇒ Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/eac_launcher/stereotypes/rails.rb', line 11

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