Skip to content

Instantly share code, notes, and snippets.

@zsyed91
Created March 18, 2016 19:38
Show Gist options
  • Save zsyed91/77dce9db6c46d2237532 to your computer and use it in GitHub Desktop.
Save zsyed91/77dce9db6c46d2237532 to your computer and use it in GitHub Desktop.
Quick description on how to layout our repo with the PiPiper driver
# /pi_piper/sysfs/driver.rb
module PiPiper
module Sysfs
class Driver < PiPiper::Driver
def initialize
# do stuff
end
end
end
end
# This file is in the actual pi_piper gem -> /pi_piper/driver.rb
module PiPiper
class Driver
end
end
# /pi_piper/sysfs.rb
require 'pi_piper'
require 'pi_piper/sysfs/version'
require 'pi_piper/sysfs/driver'
module PiPiper
module Sysfs
class << self
def driver
@driver ||= PiPiper::Sysfs::Driver.new
end
end
end
end
# /pi_piper/sysfs.version.rb
module PiPiper
module Sysfs
VERSION = '0.1.0'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment