Sha256: 7a8cc3902ac3063cca97167357371567b2ae72e861ce20484d4f6d6f1a5e66ab

Contents?: true

Size: 454 Bytes

Versions: 11

Compression:

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

11 entries across 11 versions & 1 rubygems

Version Path
berkshelf-1.0.0.rc1 lib/berkshelf/base_generator.rb
berkshelf-0.6.0.beta4 lib/berkshelf/base_generator.rb
berkshelf-0.6.0.beta3 lib/berkshelf/base_generator.rb
berkshelf-0.6.0.beta2 lib/berkshelf/base_generator.rb
berkshelf-0.5.1 lib/berkshelf/base_generator.rb
berkshelf-0.6.0.beta1 lib/berkshelf/base_generator.rb
berkshelf-0.5.0 lib/berkshelf/base_generator.rb
berkshelf-0.5.0.rc4 lib/berkshelf/base_generator.rb
berkshelf-0.5.0.rc3 lib/berkshelf/base_generator.rb
berkshelf-0.5.0.rc2 lib/berkshelf/base_generator.rb
berkshelf-0.5.0.rc1 lib/berkshelf/base_generator.rb