Class: FerrisBueller::Main

Inherits:
Mjolnir
  • Object
show all
Includes:
Helpers
Defined in:
lib/ferris-bueller/main.rb

Constant Summary

Constants included from Constants

Constants::CLOSED_STATE, Constants::CLOSED_TRANSITIONS, Constants::HELP_TEXT, Constants::RESOLVED_STATE, Constants::RESOLVED_TRANSITIONS, Constants::RETRY_DELAY, Constants::SEVERITIES, Constants::SEVERITY_FIELD, Constants::SHOW_FIELDS

Constants inherited from Mjolnir

FerrisBueller::Mjolnir::COMMON_OPTIONS

Instance Method Summary collapse

Methods included from Helpers

#go_handle_postbacks, #go_refresh_jira_incidents, #go_refresh_jira_members, #go_refresh_jira_users, #jira_request, #refresh_jira_incidents, #refresh_jira_members, #refresh_jira_users, #start_your_day_off, #store

Methods inherited from Mjolnir

include_common_options

Instance Method Details

#artObject



18
19
20
# File 'lib/ferris-bueller/main.rb', line 18

def art
  puts "\n%s\n" % ART
end

#startObject



109
110
111
112
113
114
115
116
117
118
119
# File 'lib/ferris-bueller/main.rb', line 109

def start
  log.info 'starting...'
  @store = {}
  go_refresh_jira_users
  go_refresh_jira_members
  go_refresh_jira_incidents

  queue = Queue.new
  go_handle_postbacks queue
  start_your_day_off queue
end

#versionObject



12
13
14
# File 'lib/ferris-bueller/main.rb', line 12

def version
  puts VERSION
end