Class: Capistrano::Fiesta::Report
- Inherits:
-
Object
- Object
- Capistrano::Fiesta::Report
- Defined in:
- lib/capistrano/fiesta/report.rb
Instance Method Summary collapse
Instance Method Details
#announce(config = {}) ⇒ Object
20 21 22 23 |
# File 'lib/capistrano/fiesta/report.rb', line 20 def announce(config = {}) return Logger.warn("Announcement blank, nothing posted to Slack") if nothing_to_announce? Announcement.new(text, config).post end |
#create_release(name = nil) ⇒ Object
25 26 27 28 |
# File 'lib/capistrano/fiesta/report.rb', line 25 def create_release(name = nil) return Logger.warn "No new stories, skipping GitHub release" if stories.none? Release.new(repo: repo, name: name, stories: stories).post end |
#stories ⇒ Object
30 31 32 |
# File 'lib/capistrano/fiesta/report.rb', line 30 def stories @_stories ||= fetch_stories end |