Skip to content

Instantly share code, notes, and snippets.

@werdnum
Created March 17, 2015 08:50
Show Gist options
  • Save werdnum/897b177dec60d9613f4e to your computer and use it in GitHub Desktop.
Save werdnum/897b177dec60d9613f4e to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
class Hiera
module Backend
class Extrawiki_backend
def initialize
begin
require 'net/http'
require 'json'
rescue LoadError
require 'rubygems'
require 'net/http'
require 'json'
end
Hiera.debug("Initialised ExtraWiki backend")
end
def lookup(key, scope, order_override, resolution_type)
Hiera.debug("Looking up #{key} in #{scope}")
return nil
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment