Class: CreateGithubRelease::ReleaseTasks
- Inherits:
-
Object
- Object
- CreateGithubRelease::ReleaseTasks
- Defined in:
- lib/create_github_release/release_tasks.rb
Overview
Tasks that must be run to create a new Github release.
Constant Summary collapse
- TASKS =
The tasks that will be run to create a new Github release
The tasks are run in the order they are defined in this array.
[ CreateGithubRelease::Tasks::CreateReleaseBranch, CreateGithubRelease::Tasks::UpdateVersion, CreateGithubRelease::Tasks::UpdateChangelog, CreateGithubRelease::Tasks::CommitRelease, CreateGithubRelease::Tasks::CreateReleaseTag, CreateGithubRelease::Tasks::PushRelease, CreateGithubRelease::Tasks::CreateGithubRelease, CreateGithubRelease::Tasks::CreateReleasePullRequest ].freeze
Instance Attribute Summary collapse
-
#options ⇒ CreateGithubRelease::CommandLine::Options
readonly
The options used to create the Github release.
Instance Method Summary collapse
-
#initialize(options) ⇒ ReleaseTasks
constructor
Create a new instance of ReleaseTasks.
-
#run
Run all tasks to create a new Github release.
Constructor Details
#initialize(options) ⇒ ReleaseTasks
Create a new instance of ReleaseTasks
39 40 41 |
# File 'lib/create_github_release/release_tasks.rb', line 39 def initialize() @options = end |
Instance Attribute Details
#options ⇒ CreateGithubRelease::CommandLine::Options (readonly)
The options used to create the Github release
28 29 30 |
# File 'lib/create_github_release/release_tasks.rb', line 28 def @options end |
Instance Method Details
#run
This method returns an undefined value.
Run all tasks to create a new Github release
72 73 74 75 76 77 |
# File 'lib/create_github_release/release_tasks.rb', line 72 def run TASKS.each do |task_class| # @sg-ignore task_class.new().run end end |