Sha256: 55c22de4aebfcc21ef51d453c277073b19c6bf51f2b32cd1a9b50e4d3871b9da

Contents?: true

Size: 455 Bytes

Versions: 13

Compression:

Stored size: 455 Bytes

Contents

require 'thor/group'

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

    shell = Berkshelf.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

13 entries across 13 versions & 1 rubygems

Version Path
berkshelf-1.4.6 lib/berkshelf/base_generator.rb
berkshelf-1.4.5 lib/berkshelf/base_generator.rb
berkshelf-2.0.0.beta lib/berkshelf/base_generator.rb
berkshelf-1.4.4 lib/berkshelf/base_generator.rb
berkshelf-1.4.3 lib/berkshelf/base_generator.rb
berkshelf-1.4.2 lib/berkshelf/base_generator.rb
berkshelf-1.4.1 lib/berkshelf/base_generator.rb
berkshelf-1.4.0 lib/berkshelf/base_generator.rb
berkshelf-1.4.0.rc1 lib/berkshelf/base_generator.rb
berkshelf-1.3.1 lib/berkshelf/base_generator.rb
berkshelf-1.3.0.rc1 lib/berkshelf/base_generator.rb
berkshelf-1.2.1 lib/berkshelf/base_generator.rb
berkshelf-1.2.0.rc1 lib/berkshelf/base_generator.rb