Class: Aufgaben::Bump::Nodejs
- Inherits:
-
Base
- Object
- Rake::TaskLib
- Aufgaben::Base
- Base
- Aufgaben::Bump::Nodejs
- 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
-
#version_files ⇒ Object
Returns the value of attribute version_files.
Attributes inherited from Base
#commit_message_template, #files, #ns
Attributes inherited from Aufgaben::Base
Instance Method Summary collapse
-
#initialize(name = :nodejs, ns = default_namespace, depends: []) ⇒ Nodejs
constructor
A new instance of Nodejs.
Methods inherited from Base
Methods inherited from Aufgaben::Base
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_files ⇒ Object
Returns the value of attribute version_files.
14 15 16 |
# File 'lib/aufgaben/bump/nodejs.rb', line 14 def version_files @version_files end |