Class: EacLauncher::Stereotypes::Git

Inherits:
Object
  • Object
show all
Includes:
EacLauncher::Stereotype
Defined in:
lib/eac_launcher/stereotypes/git.rb,
lib/eac_launcher/stereotypes/git/warp.rb,
lib/eac_launcher/stereotypes/git/publish.rb

Defined Under Namespace

Classes: Publish, Warp

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/git.rb', line 15

def color
  :white
end

.match?(path) ⇒ Boolean

Returns:

  • (Boolean)


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

def match?(path)
  File.directory?(path.real.subpath('.git'))
end