Class: Cp8Cli::AdhocStory
- Inherits:
-
Object
- Object
- Cp8Cli::AdhocStory
- Includes:
- Storyable
- Defined in:
- lib/cp8_cli/adhoc_story.rb
Instance Attribute Summary collapse
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(title) ⇒ AdhocStory
constructor
A new instance of AdhocStory.
- #pr_title ⇒ Object
- #short_link ⇒ Object
- #start ⇒ Object
- #summary ⇒ Object
Methods included from Storyable
Constructor Details
#initialize(title) ⇒ AdhocStory
Returns a new instance of AdhocStory.
8 9 10 |
# File 'lib/cp8_cli/adhoc_story.rb', line 8 def initialize(title) @title = title end |
Instance Attribute Details
#title ⇒ Object (readonly)
Returns the value of attribute title.
6 7 8 |
# File 'lib/cp8_cli/adhoc_story.rb', line 6 def title @title end |
Instance Method Details
#pr_title ⇒ Object
26 27 28 |
# File 'lib/cp8_cli/adhoc_story.rb', line 26 def pr_title PullRequestTitle.new(title, prefixes: [:wip]).run end |
#short_link ⇒ Object
22 23 24 |
# File 'lib/cp8_cli/adhoc_story.rb', line 22 def short_link nil # noop for now end |
#start ⇒ Object
16 17 18 19 20 |
# File 'lib/cp8_cli/adhoc_story.rb', line 16 def start create_empty_commit push_branch create_wip_pull_request end |
#summary ⇒ Object
12 13 14 |
# File 'lib/cp8_cli/adhoc_story.rb', line 12 def summary nil # noop for now end |