Sha256: 2a6cdb852a14f9145cefc2bf47b718aef3fbb7562143dac80e4a5d66c69d583b

Contents?: true

Size: 368 Bytes

Versions: 3

Compression:

Stored size: 368 Bytes

Contents

require 'thor/group'

module Berkshelf
  # @author Jamie Winsor <jamie@vialstudios.com>
  class BaseGenerator < Thor::Group
    class << self
      def source_root
        Berkshelf.root.join("generator_files")
      end
    end
    
    include Thor::Actions

    private

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
berkshelf-0.4.0 lib/berkshelf/base_generator.rb
berkshelf-0.4.0.rc4 lib/berkshelf/base_generator.rb
berkshelf-0.4.0.rc3 lib/berkshelf/base_generator.rb