Sha256: 7248a720f1505124959e84dcae5a2d3eb82fe664925f783a7e5cb7afcdb47d25
Contents?: true
Size: 785 Bytes
Versions: 1
Compression:
Stored size: 785 Bytes
Contents
require "capistrano/ghostinspector/analytics" require "staccato" module Capistrano module Ghostinspector module Analytics def self.pushDeployment(ga_property, current_revision) tracker = Staccato.tracker(ga_property) # inform GA of a new deployment tracker.event(category: 'deployment', action: "deploy", label: current_revision, non_interactive: true) end def self.pushErrors(ga_property, current_revision, data) tracker = Staccato.tracker(ga_property) data['steps'].each do |step| if (step['passing'] == false) # send the errors to GA tracker.event(category: 'error', action: step['error'], label: "Command: #{step['command']} - Target: #{step['target']}", non_interactive: true) end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capistrano-ghostinspector-0.2.0.rc | lib/capistrano/ghostinspector/analytics.rb |