Class: Aufgaben::Release

Inherits:
Base
  • Object
show all
Defined in:
lib/aufgaben/release.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#depends, #dry_run, #name

Instance Method Summary collapse

Methods inherited from Base

#dry_run?, #git

Constructor Details

#initialize(name = :release, depends: []) {|_self| ... } ⇒ Release

Returns a new instance of Release.

Yields:

  • (_self)

Yield Parameters:



11
12
13
14
15
16
17
18
19
20
# File 'lib/aufgaben/release.rb', line 11

def initialize(name = :release, depends: [])
  super(name, depends: depends)
  @default_branch = "main"
  @changelog = "CHANGELOG.md"
  @files = []
  @new_version = nil

  yield self if block_given?
  define
end

Instance Attribute Details

#changelogObject

Returns the value of attribute changelog.



7
8
9
# File 'lib/aufgaben/release.rb', line 7

def changelog
  @changelog
end

#default_branchObject

Returns the value of attribute default_branch.



6
7
8
# File 'lib/aufgaben/release.rb', line 6

def default_branch
  @default_branch
end

#filesObject

Returns the value of attribute files.



8
9
10
# File 'lib/aufgaben/release.rb', line 8

def files
  @files
end

#new_versionObject

Returns the value of attribute new_version.



9
10
11
# File 'lib/aufgaben/release.rb', line 9

def new_version
  @new_version
end