Sha256: ef2b42f918b0b57de5519119b2cb45497758b26b0a6f603f9621cbfa66cfc91c
Contents?: true
Size: 1.17 KB
Versions: 1
Compression:
Stored size: 1.17 KB
Contents
module Physique class NugetConfig self.extend Albacore::ConfigDSL attr_path :exe, # Path to nuget executable :restore_location, # Path where nuget packages will be downloaded :build_location # Path where nuget packages will be built # Disable metadata analysis (sets -NoPackageAnalysis flag) def disable_package_analysis @disable_package_analysis = true end def initialize @exe = 'src/.nuget/NuGet.exe' @restore_location = 'src/packages' @build_location = 'build/packages' end def opts Map.new({ exe: @exe, restore_location: @restore_location, build_location: @build_location, disable_package_analysis: !!@disable_package_analysis }) end end class NugetTasksBuilder < TasksBuilder def build_tasks add_restore end private def add_restore task = nugets_restore :restore do |r| r.out = solution.nuget.restore_location r.exe = solution.nuget.exe end task.add_description 'Restores all nugets as per the packages.config files' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
physique-0.3.0 | lib/physique/task_builders/nuget.rb |