Sha256: 736d99b4e0658a1264bdb331162c554cfcce1cf92a0d9224fc44d9b24ebe9ff5
Contents?: true
Size: 492 Bytes
Versions: 11
Compression:
Stored size: 492 Bytes
Contents
# encoding: utf-8 require "simple-templater/hooks/hook" # run your generator with --github resp. --no-github module SimpleTemplater::Hooks class Github < Hook def setup require "github" rescue LoadError raise SimpleTemplater::SkipHookError, "You have to have github gem installed" end def run if identificator(:github).yes?("Do you want to create #{@generator.project_name} on GitHub?") # TODO: coming in version 0.2 end end end end
Version data entries
11 entries across 11 versions & 2 rubygems