Module: Stepper

Defined in:
lib/stepper-instrument.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.daemon_hostObject

Returns the value of attribute daemon_host.



7
8
9
# File 'lib/stepper-instrument.rb', line 7

def daemon_host
  @daemon_host
end

.daemon_portObject

Returns the value of attribute daemon_port.



7
8
9
# File 'lib/stepper-instrument.rb', line 7

def daemon_port
  @daemon_port
end

.disabledObject

Returns the value of attribute disabled.



7
8
9
# File 'lib/stepper-instrument.rb', line 7

def disabled
  @disabled
end

Class Method Details

.daemon_hostport=(hostport) ⇒ Object



9
10
11
12
# File 'lib/stepper-instrument.rb', line 9

def daemon_hostport=(hostport)
  self.daemon_host, port = hostport.split(':')
  self.daemon_port = port.to_i
end

.step(key, value, file = nil) ⇒ Object



22
23
24
# File 'lib/stepper-instrument.rb', line 22

def step(key, value, file = nil)
  write(key, value, :s, nil, file)
end

.stepup(key, delta = 1, file = nil) ⇒ Object



26
27
28
# File 'lib/stepper-instrument.rb', line 26

def stepup(key, delta = 1, file = nil)
  write(key, delta, :su, nil, file)
end