Class: Avm::Projects::Stereotypes::RubyGem

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

Defined Under Namespace

Modules: LocalProjectMixin Classes: Publish, Update, VersionBump

Class Method Summary collapse

Methods included from Avm::Projects::Stereotype

git_stereotypes, included, nogit_stereotypes

Class Method Details

.colorObject



19
20
21
# File 'lib/avm/projects/stereotypes/ruby_gem.rb', line 19

def color
  :red
end

.load_gemspec(gemspec_file) ⇒ Object



23
24
25
# File 'lib/avm/projects/stereotypes/ruby_gem.rb', line 23

def load_gemspec(gemspec_file)
  ::Avm::Launcher::Ruby::Gem::Specification.new(gemspec_file)
end

.match?(path) ⇒ Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/avm/projects/stereotypes/ruby_gem.rb', line 15

def match?(path)
  Dir.glob(File.join(path.real, '*.gemspec')).any?
end