Sha256: da0ca7647e8661c80a58aad689a7ed98d3c58ed0a9c4dcbe5fc8a9614e4b2c36

Contents?: true

Size: 424 Bytes

Versions: 7

Compression:

Stored size: 424 Bytes

Contents

require 'thor/group'

module Transcriptic
  class BaseGenerator < Thor::Group
    class << self
      def source_root
        Transcriptic.root.join('lib/transcriptic/templates')
      end
    end

    shell = Transcriptic.ui

    argument :path,
      type: :string,
      required: true

    include Thor::Actions

    private

      def target
        @target ||= Pathname.new(File.expand_path(path))
      end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
transcriptic-0.2.10 lib/transcriptic/base_generator.rb
transcriptic-0.2.5 lib/transcriptic/base_generator.rb
transcriptic-0.2.4 lib/transcriptic/base_generator.rb
transcriptic-0.2.3 lib/transcriptic/base_generator.rb
transcriptic-0.2.2 lib/transcriptic/base_generator.rb
transcriptic-0.2.1 lib/transcriptic/base_generator.rb
transcriptic-0.2.0 lib/transcriptic/base_generator.rb