Sha256: 0d69c6dfcb39fcb4bc1af433aa2a5962d593de0202f4e1e3b41579286c7f6c63

Contents?: true

Size: 347 Bytes

Versions: 3

Compression:

Stored size: 347 Bytes

Contents

require 'defaulty'

module Boxy
  class DefaultyHandler
    def install(domain, options)
      defaulty_url = ENV['DEFAULTY_URL'] || 'https://api.github.com/repos/fooheads/osxdefaults/contents/'
      @defaulty ||= Defaulty.load(defaulty_url)
      @defaulty.write(domain, options)
    end
  end

  Boxy.register(:osx, DefaultyHandler.new)
end



Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
boxy-0.2.1 lib/boxy/defaulty.rb
boxy-0.2.0 lib/boxy/defaulty.rb
boxy-0.1.0 lib/boxy/defaulty.rb