Sha256: 2c2c10d00af2a4dc85677bbe4d954dc5e3351fad3b65931182e579ff3421e291

Contents?: true

Size: 656 Bytes

Versions: 7

Compression:

Stored size: 656 Bytes

Contents

module Logirel::Tasks
  def nuget_task(nuget_exe_folder = nil, nuget_input_folder = nil, opts={})
    nuget_exe_folder = tuck_and_get :nuget_exe_folder, nuget_exe_folder
    nuget_input_folder = tuck_and_get :nuget_input_folder, nuget_input_folder

    append_to_file BUILD_FILE, <<-EOF, :verbose => false

desc "create a nuget package"
nugetpack #{ inject_task_name opts, 'nuget' }#{ inject_dependency opts } do |nuget|
   nuget.command     = "#{nuget_exe_folder || 'tools/nuget'}/nuget.exe"
   nuget.nuspec      = "#{vars[:solution].name}.nuspec"
   nuget.base_folder = "#{nuget_input_folder || 'out'}"
   nuget.output      = "pkg"
end
    EOF
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
logirel-0.1.4 lib/logirel/tasks/nuget.rb
logirel-0.1.3 lib/logirel/tasks/nuget.rb
logirel-0.1.2 lib/logirel/tasks/nuget.rb
logirel-0.1.1 lib/logirel/tasks/nuget.rb
logirel-0.1.0 lib/logirel/tasks/nuget.rb
logirel-0.0.18 lib/logirel/tasks/nuget.rb
logirel-0.0.17 lib/logirel/tasks/nuget.rb