Class: CreateGithubRelease::CommandLine::Options
- Inherits:
-
Object
- Object
- CreateGithubRelease::CommandLine::Options
- Extended by:
- Forwardable
- Defined in:
- lib/create_github_release/command_line/options.rb
Overview
Stores and validates the command line options
Instance Attribute Summary collapse
-
#changelog_path ⇒ String
the path to the changelog file.
-
#default_branch ⇒ String
the default branch of the repository.
-
#last_release_version ⇒ String
the version of the last release.
-
#next_release_version ⇒ String
the version of the next release.
-
#quiet ⇒ Boolean
if
true
, suppresses all output. -
#release_branch ⇒ String
the branch use to create the release.
-
#release_pr_label ⇒ String
the label to apply to the release pull request.
-
#release_type ⇒ String
the type of release to create.
-
#remote ⇒ String
the name of the remote to use to access Github.
-
#verbose ⇒ Boolean
if
true
, enables verbose output.
Instance Method Summary collapse
-
#initialize(**options) {|self| ... } ⇒ Options
constructor
Create a new instance of this class.
Constructor Details
#initialize(**options) {|self| ... } ⇒ Options
Create a new instance of this class
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 |
# File 'lib/create_github_release/command_line/options.rb', line 125 def initialize(**) () .each { |k, v| instance_variable_set("@#{k}", v) } self.quiet ||= false self.verbose ||= false self.pre ||= false @errors = [] yield(self) if block_given? @validator = CommandLine::Validator.new(self) valid? end |
Instance Attribute Details
#changelog_path ⇒ String
the path to the changelog file
|
# File 'lib/create_github_release/command_line/options.rb', line 73
|
#default_branch ⇒ String
the default branch of the repository
|
# File 'lib/create_github_release/command_line/options.rb', line 31
|
#last_release_version ⇒ String
the version of the last release
|
# File 'lib/create_github_release/command_line/options.rb', line 52
|
#next_release_version ⇒ String
the version of the next release
|
# File 'lib/create_github_release/command_line/options.rb', line 59
|
#quiet ⇒ Boolean
if true
, suppresses all output
|
# File 'lib/create_github_release/command_line/options.rb', line 80
|
#release_branch ⇒ String
the branch use to create the release
|
# File 'lib/create_github_release/command_line/options.rb', line 38
|
#release_pr_label ⇒ String
the label to apply to the release pull request
|
# File 'lib/create_github_release/command_line/options.rb', line 66
|
#release_type ⇒ String
the type of release to create
Must be one of the VALID_RELEASE_TYPES
|
# File 'lib/create_github_release/command_line/options.rb', line 21
|
#remote ⇒ String
the name of the remote to use to access Github
|
# File 'lib/create_github_release/command_line/options.rb', line 45
|
#verbose ⇒ Boolean
if true
, enables verbose output
|
# File 'lib/create_github_release/command_line/options.rb', line 87
|