Sha256: a955f350e405656bccaf8f9aa335e6af444a1d3df101cb48a994d3abeaace4f6
Contents?: true
Size: 617 Bytes
Versions: 16
Compression:
Stored size: 617 Bytes
Contents
require 'puppetfactory' class Puppetfactory::Plugins::Gitviz < Puppetfactory::Plugins def initialize(options) super(options) return unless options[:puppetfactory] server = options[:puppetfactory] # Add a web route to the puppetfactory server. Must happen in the initializer server.get '/gitviz' do '<iframe id="gitviz" src="/explain-git-with-d3/embed.html" /><script>$("div:has(#gitviz)").css("padding", 0);$("body").css("min-width", "1150px");</script>' end end def tabs(privileged = false) # url path => display title { 'gitviz' => 'Git Visualization' } end end
Version data entries
16 entries across 16 versions & 1 rubygems