Sha256: 2b37a0e31792a1e15bb709c0c9d748664b4619ba4d27c0a20746b1581d7033cb

Contents?: true

Size: 428 Bytes

Versions: 1

Compression:

Stored size: 428 Bytes

Contents

require "thor"
require "rubygems"

module Skelegem
  module Templates

    class Gemspec < Thor::Group

      include Thor::Actions
      argument :name

      def self.source_root
        File.dirname(__FILE__)
      end

      def create_lib_file
        my_spec = Skelegem::Store.gemspec
        File.delete "#{name}.gemspec"
        template('gemspec.tt', "#{name}.gemspec", :my_spec => my_spec)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
skelegem-0.1.0 lib/skelegem/templates/gemspec/gemspec.rb