Sha256: b8a1ea3c2742542d72933acc9bd6ced4abf61e66cb4f97f2616f0cf6001c7971

Contents?: true

Size: 658 Bytes

Versions: 9

Compression:

Stored size: 658 Bytes

Contents

module Logirel::Tasks
  def aspnet_task(web_output_folder=nil, opts={})
    web_output_folder = tuck_and_get :web_output_folder, web_output_folder

    if vars[:solution].has_web_projects?
      vars[:solution].web_projects.each do |p|
        # todo: snake case p.name in const.

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

desc "asp compile"
aspnetcompiler #{ inject_task_name opts, 'precompile' }_#{p.name}#{ inject_dependency opts } do |c|
  c.physical_path = "#{p.directory}"
  c.target_path = "#{web_output_folder || 'web_out' }/#{p.name}"
  c.updateable = true
  c.force = true
end
        EOF
      end #each
    end #if
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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