Sha256: 41fcfbf38c4798ac87caa69c0cafbfc3cd46777d135ce8a80cfca41cab2f16ea

Contents?: true

Size: 735 Bytes

Versions: 4

Compression:

Stored size: 735 Bytes

Contents

require 'rubygems'
require 'rake'

desc "Builds any binaries local to right_link"
task :default do
  if RUBY_PLATFORM =~ /mswin|mingw/
    task = 'build'
    ms_build_path = "#{ENV['WINDIR']}\\Microsoft.NET\\Framework\\v3.5\\msbuild.exe"
    right_link_root = ::File.expand_path(::File.join(::File.dirname(__FILE__), '..'))
    Dir.chdir(File.join(right_link_root, 'lib', 'chef', 'windows', 'ChefNodeCmdlet')) do
      # Note that we can build C# components using msbuild instead of needing to
      # have Developer Studio installed
      build_command = "#{ms_build_path} ChefNodeCmdlet.sln /t:#{task} /p:configuration=Release > ChefNodeCmdlet.build.txt 2>&1"
      puts "#{build_command}"
      `#{build_command}`
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
right_link-5.9.5 ext/Rakefile
right_link-5.9.2 ext/Rakefile
right_link-5.9.1 ext/Rakefile
right_link-5.9.0 ext/Rakefile