Class: Package

Inherits:
Array show all
Defined in:
lib/tasks/package.rb

Instance Attribute Summary

Attributes inherited from Array

#env

Instance Method Summary collapse

Methods inherited from Array

#add, #add_passive, #add_quiet, #execute, #has_command?, #initialize, #to_html

Constructor Details

This class inherits a constructor from Array

Instance Method Details

#updateObject



11
12
13
# File 'lib/tasks/package.rb', line 11

def update
	update_nuget if Environment.windows?
end

#update_nugetObject



14
15
16
17
18
19
20
21
22
23
24
# File 'lib/tasks/package.rb', line 14

def update_nuget
	puts "Package scanning for nuget files" if Environment.default.debug?
   	NUGET_FILES.each{|nuget_file|
    	package_commands = Nuget.get_build_commands nuget_file
    	if(!package_commands.nil?)
    		package_commands.each{|c|
    			add_quiet(c)
    		}
    	end
    }
end