Class: Fozzie::Classes::AbstractFozzie

Inherits:
Statsd
  • Object
show all
Defined in:
lib/fozzie/classes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(host, port, prefix = nil) ⇒ AbstractFozzie

Returns a new instance of AbstractFozzie.



9
10
11
12
# File 'lib/fozzie/classes.rb', line 9

def initialize(host, port, prefix = nil)
  @namespace = prefix unless prefix.nil?
  super host, port
end

Instance Attribute Details

#prefixObject (readonly)

Returns the value of attribute prefix.



7
8
9
# File 'lib/fozzie/classes.rb', line 7

def prefix
  @prefix
end

Instance Method Details

#buildObject



24
# File 'lib/fozzie/classes.rb', line 24

def build; built; end

#builtObject



25
26
27
# File 'lib/fozzie/classes.rb', line 25

def built
  event :build
end

#commitObject



20
21
22
# File 'lib/fozzie/classes.rb', line 20

def commit
  event :commit
end

#committedObject



19
# File 'lib/fozzie/classes.rb', line 19

def committed; commit; end

#deployObject



29
# File 'lib/fozzie/classes.rb', line 29

def deploy; deployed; end

#deployedObject



30
31
32
# File 'lib/fozzie/classes.rb', line 30

def deployed
  event :deploy
end

#time_for(stat, sample_rate = 1, &block) ⇒ Object



15
16
17
# File 'lib/fozzie/classes.rb', line 15

def time_for(stat, sample_rate=1, &block)
  time(stat, sample_rate, &block)
end

#time_to_do(stat, sample_rate = 1, &block) ⇒ Object



14
# File 'lib/fozzie/classes.rb', line 14

def time_to_do(stat, sample_rate=1, &block); time_for(stat, sample_rate, &block); end