Sha256: d3a2742fa6b297b6ff262aedc03051b001b58f4a3ffb957eb5c0da1a2be4bf0d

Contents?: true

Size: 488 Bytes

Versions: 1

Compression:

Stored size: 488 Bytes

Contents

module GitVersion
  module Generators
    class InstallGenerator < ::Rails::Generators::Base

      desc <<DESC
Description:
    Copy git-version files to your application.
DESC

      def self.source_root
        @source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'templates'))
      end

      def copy_gitattributes
        template 'gitattributes', '.gitattributes'
      end

      def copy_version
        template 'config/version.txt'
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
git-version-0.0.3 lib/generators/git_version/install/install_generator.rb