Sha256: 242e8437bc033192bce3e7ffd8ff075c7c26b8970725eb22fcf237192b2a1ae9

Contents?: true

Size: 540 Bytes

Versions: 9

Compression:

Stored size: 540 Bytes

Contents

# encoding: utf-8

require "simple-templater/hooks/postprocess/git_repository"

# This hook will be executed after templater finish in context of current generator object.
# Current directory is what you just generated, unless this is flat generator.

hook do |generator, context|
  # simple-templater create rango --full-name="Jakub Stastny"
  generator.after Hooks::GitRepository

  unless context[:ruby]
    rm "init.rb"
    rm "deps.rb"
    rm "#{context[:name]}.gemspec"
    rm "#{context[:name]}.pre.gemspec"
    rm_r "lib"
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pupu-0.2.1 stubs/pupu/postprocess.rb
pupu-0.2 stubs/pupu/postprocess.rb
pupu-0.1 stubs/pupu/postprocess.rb
pupu-0.0.5.5 stubs/pupu/postprocess.rb
pupu-0.0.5.4 stubs/pupu/postprocess.rb
pupu-0.0.5.3 stubs/pupu/postprocess.rb
pupu-0.0.5.2 stubs/pupu/postprocess.rb
pupu-0.0.5.1 stubs/pupu/postprocess.rb
pupu-0.0.5 stubs/pupu/postprocess.rb