Class: Cp8Cli::AdhocStory

Inherits:
Object
  • Object
show all
Includes:
Storyable
Defined in:
lib/cp8_cli/adhoc_story.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Storyable

#branch

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

#titleObject (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_titleObject



26
27
28
# File 'lib/cp8_cli/adhoc_story.rb', line 26

def pr_title
  PullRequestTitle.new(title, prefixes: [:wip]).run
end


22
23
24
# File 'lib/cp8_cli/adhoc_story.rb', line 22

def short_link
  nil # noop for now
end

#startObject



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

#summaryObject



12
13
14
# File 'lib/cp8_cli/adhoc_story.rb', line 12

def summary
  nil # noop for now
end