Class: Avm::Projects::Stereotypes::RailsApplication

Inherits:
Object
  • Object
show all
Includes:
Avm::Projects::Stereotype
Defined in:
lib/avm/projects/stereotypes/rails_application.rb,
lib/avm/projects/stereotypes/rails_application/update.rb,
lib/avm/projects/stereotypes/rails_application/local_project_mixin.rb

Defined Under Namespace

Modules: LocalProjectMixin Classes: Update

Class Method Summary collapse

Methods included from Avm::Projects::Stereotype

git_stereotypes, included, nogit_stereotypes

Class Method Details

.colorObject



18
19
20
# File 'lib/avm/projects/stereotypes/rails_application.rb', line 18

def color
  :magenta
end

.match?(path) ⇒ Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/avm/projects/stereotypes/rails_application.rb', line 14

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