class Skiff::Manager
Public Class Methods
new(base_path = '/sys/bus/w1/devices')
click to toggle source
# File lib/skiff/manager.rb, line 3 def initialize(base_path = '/sys/bus/w1/devices') binding.pry @base_path = base_path end
Public Instance Methods
create_probe(probe_name)
click to toggle source
# File lib/skiff/manager.rb, line 13 def create_probe(probe_name) ::Skiff::Probe.new(@base_path, probe_name) end
probes()
click to toggle source
# File lib/skiff/manager.rb, line 8 def probes paths = Dir.glob(File.join(@base_path, "*")) probes = paths.select { |path| path.include?("-") }.map { |path| path.split('/').last.strip } end