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

Version Path
simple-templater-0.0.1.6 lib/simple-templater/hooks/postprocess/github.rb
simple-templater-0.0.1.5 lib/simple-templater/hooks/postprocess/github.rb
simple-templater-0.0.1.4 lib/simple-templater/hooks/postprocess/github.rb
simple-templater-0.0.1.3 lib/simple-templater/hooks/postprocess/github.rb
simple-templater-0.2.pre lib/simple-templater/hooks/postprocess/github.rb
simple-templater-0.0.1.2 lib/simple-templater/hooks/postprocess/github.rb
simple-templater-0.0.1.1 lib/simple-templater/hooks/postprocess/github.rb
rango-0.0.6 vendor/simple-templater/lib/simple-templater/hooks/postprocess/github.rb
rango-0.1.pre vendor/simple-templater/lib/simple-templater/hooks/postprocess/github.rb
simple-templater-0.1.pre lib/simple-templater/hooks/postprocess/github.rb
simple-templater-0.0.1 lib/simple-templater/hooks/postprocess/github.rb