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

Version Path
puppetfactory-0.6.5 lib/puppetfactory/plugins/gitviz.rb
puppetfactory-0.6.4 lib/puppetfactory/plugins/gitviz.rb
puppetfactory-0.6.3 lib/puppetfactory/plugins/gitviz.rb
puppetfactory-0.6.2 lib/puppetfactory/plugins/gitviz.rb
puppetfactory-0.6.1 lib/puppetfactory/plugins/gitviz.rb
puppetfactory-0.6.0 lib/puppetfactory/plugins/gitviz.rb
puppetfactory-0.5.9 lib/puppetfactory/plugins/gitviz.rb
puppetfactory-0.5.8 lib/puppetfactory/plugins/gitviz.rb
puppetfactory-0.5.7 lib/puppetfactory/plugins/gitviz.rb
puppetfactory-0.5.6 lib/puppetfactory/plugins/gitviz.rb
puppetfactory-0.5.5 lib/puppetfactory/plugins/gitviz.rb
puppetfactory-0.5.4 lib/puppetfactory/plugins/gitviz.rb
puppetfactory-0.5.3 lib/puppetfactory/plugins/gitviz.rb
puppetfactory-0.5.2 lib/puppetfactory/plugins/gitviz.rb
puppetfactory-0.5.1 lib/puppetfactory/plugins/gitviz.rb
puppetfactory-0.5.0 lib/puppetfactory/plugins/gitviz.rb