Sha256: d942f71c7f3dd38cbefc86db316aa99062482707a80f498cbc6cde2d656198a1

Contents?: true

Size: 655 Bytes

Versions: 1

Compression:

Stored size: 655 Bytes

Contents

puts __FILE__ if defined?(DEBUG)

require_relative('../base/environment.rb')

NUGET_FILES=FileList.new('**/*.nuspec')

desc 'performs package commands'
task :package do Tasks.execute_task :package;end

class Package < Array
	def update
    	update_nuget if Environment.windows?
    end
    def update_nuget
		puts "Package scanning for nuget files" if Environment.default.debug?
		   NUGET_FILES.each{|nuget_file|
			if(!nuget_file.include('/obj/'))
				package_commands = Nuget.get_build_commands nuget_file
				if(!package_commands.nil?)
					package_commands.each{|c|
						add_passive(c)
					}
				end
			end
	    }
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dev-2.1.103 lib/tasks/package.rb