Sha256: da33729d667b3b88cbd3cfd154f99525bd31eb20aa2a779fc78d4bbbfc54149b

Contents?: true

Size: 367 Bytes

Versions: 5

Compression:

Stored size: 367 Bytes

Contents

require 'thor'

module Blazing
  module CLI
    class Hook < Thor

      include Thor::Actions

      argument :target

      desc 'generate', 'generate post-receive hook from template'
      def generate
        template('templates/post-hook.tt', '/tmp/post-receive')
      end

      def self.source_root
        File.dirname(__FILE__)
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
blazing-0.0.12 lib/blazing/cli/hook.rb
blazing-0.0.10 lib/blazing/cli/hook.rb
blazing-0.0.9 lib/blazing/cli/hook.rb
blazing-0.0.8 lib/blazing/cli/hook.rb
blazing-0.0.7 lib/blazing/cli/hook.rb