Sha256: fa7d3e7c343996eb223412c7d4cf4250855f682ff7d469d97e6e38bbec5d4b26

Contents?: true

Size: 450 Bytes

Versions: 14

Compression:

Stored size: 450 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

    def initialize(*args)
      super(*args)
      self.shell = Berkshelf.ui
    end

    private

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
berkshelf-1.1.6 lib/berkshelf/base_generator.rb
berkshelf-1.1.5 lib/berkshelf/base_generator.rb
berkshelf-1.1.4 lib/berkshelf/base_generator.rb
berkshelf-1.1.3 lib/berkshelf/base_generator.rb
berkshelf-1.1.2 lib/berkshelf/base_generator.rb
berkshelf-1.1.1 lib/berkshelf/base_generator.rb
berkshelf-1.1.0 lib/berkshelf/base_generator.rb
berkshelf-1.1.0.rc1 lib/berkshelf/base_generator.rb
berkshelf-1.0.4 lib/berkshelf/base_generator.rb
berkshelf-1.0.3 lib/berkshelf/base_generator.rb
berkshelf-1.0.2 lib/berkshelf/base_generator.rb
berkshelf-1.0.0 lib/berkshelf/base_generator.rb
berkshelf-1.0.0.rc3 lib/berkshelf/base_generator.rb
berkshelf-1.0.0.rc2 lib/berkshelf/base_generator.rb