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, #log_debug_info, #to_html

Constructor Details

This class inherits a constructor from Array

Instance Method Details

#updateObject


13
14
15
# File 'lib/tasks/package.rb', line 13

def update
  update_nuget if Environment.windows?
end

#update_nugetObject


17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/tasks/package.rb', line 17

def update_nuget
  puts "Package scanning for nuget files" if Environment.default.debug?
  NUGET_FILES.each do |nuget_file|
    next if nuget_file.include?("/obj/")

    package_commands = Nuget.get_build_commands nuget_file
    next if package_commands.nil?

    package_commands.each do |c|
      add_passive(c)
    end
  end
end