Class: Aufgaben::Bump::Nodejs

Inherits:
Base show all
Defined in:
lib/aufgaben/bump/nodejs.rb

Constant Summary collapse

DEFAULT_FILES =
%w[
  Dockerfile
].freeze
DEFAULT_VERSION_FILES =
%w[
  .node-version
  .nvmrc
].freeze

Constants inherited from Base

Base::DEFAULT_COMMIT_MESSAGE_TEMPLATE

Instance Attribute Summary collapse

Attributes inherited from Base

#commit_message_template, #files, #ns

Attributes inherited from Aufgaben::Base

#depends, #dry_run, #name

Instance Method Summary collapse

Methods inherited from Base

#default_namespace

Methods inherited from Aufgaben::Base

#dry_run?, #git

Constructor Details

#initialize(name = :nodejs, ns = default_namespace, depends: []) ⇒ Nodejs

Returns a new instance of Nodejs.



16
17
18
19
20
21
# File 'lib/aufgaben/bump/nodejs.rb', line 16

def initialize(name = :nodejs, ns = default_namespace, depends: [])
  self.files = DEFAULT_FILES.dup
  self.version_files = DEFAULT_VERSION_FILES.dup

  super(name, ns, "Node.js", depends: depends)
end

Instance Attribute Details

#version_filesObject

Returns the value of attribute version_files.



14
15
16
# File 'lib/aufgaben/bump/nodejs.rb', line 14

def version_files
  @version_files
end