Sha256: 31fb2ab035885e1460683dad771d5b4171691515dcc90a240432d50ce969d7a2

Contents?: true

Size: 685 Bytes

Versions: 1

Compression:

Stored size: 685 Bytes

Contents

require 'baltix/source/base'
require 'baltix/rake'

class Baltix::Source::Rakefile < Baltix::Source::Base
   class << self
      def search dir, options_in = {}
         Dir.glob("#{dir}/**/Rakefile", File::FNM_DOTMATCH).select {|f| File.file?(f) }.map do |f|
            self.new(source_options({ source_file: f, loader: :rakefile }.to_os.merge(options_in)))
         end
      end
   end

   def dsl
      @dsl ||=
         Baltix::DSL.new(source_file,
         replace_list: replace_list,
         skip_list: (options[:gem_skip_list] || []) | [self.name],
         append_list: options[:gem_append_list])
   end

   def rake
      @rake ||= Baltix::Rake.new(source_file)
   end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
baltix-0.1.1 lib/baltix/source/rakefile.rb