Module: Kennel
- Defined in:
- lib/kennel/file_cache.rb,
lib/kennel.rb,
lib/kennel/api.rb,
lib/kennel/utils.rb,
lib/kennel/syncer.rb,
lib/kennel/version.rb,
lib/kennel/importer.rb,
lib/kennel/progress.rb,
lib/kennel/models/base.rb,
lib/kennel/models/dash.rb,
lib/kennel/models/team.rb,
lib/kennel/models/screen.rb,
lib/kennel/models/monitor.rb,
lib/kennel/models/project.rb,
lib/kennel/unmuted_alerts.rb,
lib/kennel/github_reporter.rb,
lib/kennel/subclass_tracking.rb,
lib/kennel/template_variables.rb,
lib/kennel/optional_validations.rb
Overview
Show Alerts that are not muted and their alerting scopes
Defined Under Namespace
Modules: Models, OptionalValidations, SubclassTracking, TemplateVariables, Utils Classes: Api, FileCache, GithubReporter, Importer, Progress, Syncer, UnmutedAlerts
Constant Summary collapse
- VERSION =
"1.27.3"
Class Attribute Summary collapse
-
.err ⇒ Object
Returns the value of attribute err.
-
.out ⇒ Object
Returns the value of attribute out.
Class Method Summary collapse
Class Attribute Details
.err ⇒ Object
Returns the value of attribute err.
34 35 36 |
# File 'lib/kennel.rb', line 34 def err @err end |
.out ⇒ Object
Returns the value of attribute out.
34 35 36 |
# File 'lib/kennel.rb', line 34 def out @out end |
Class Method Details
.generate ⇒ Object
36 37 38 39 40 41 42 43 |
# File 'lib/kennel.rb', line 36 def generate FileUtils.rm_rf("generated") generated.each do |part| path = "generated/#{part.tracking_id.sub(":", "/")}.json" FileUtils.mkdir_p(File.dirname(path)) File.write(path, JSON.pretty_generate(part.as_json) << "\n") end end |
.plan ⇒ Object
45 46 47 |
# File 'lib/kennel.rb', line 45 def plan syncer.plan end |
.update ⇒ Object
49 50 51 52 |
# File 'lib/kennel.rb', line 49 def update syncer.plan syncer.update if syncer.confirm end |