Sha256: 2a8680757ec1d2c7094803f790f695c13f1b8894ab03f3110b19be5495b77910

Contents?: true

Size: 582 Bytes

Versions: 8

Compression:

Stored size: 582 Bytes

Contents

require File.expand_path('../../features/support/constants', __FILE__)

# Open template config file and write in proper data
puts "Replacing Configuration Data"
File.open("applicationhost.config", "w") do |file|
  File.open("applicationhost.config.template", 'r').each do |line|
    line.gsub!("%SAMPLE_SERVICE_DIR%", "#{Dir.pwd.gsub("\/", "\\")}\\RubyODataService\\RubyODataService")
    line.gsub!("%HTTP_PORT_NUMBER%", "#{HTTP_PORT_NUMBER}")
    line.gsub!("%HTTPS_PORT_NUMBER%", "#{HTTPS_PORT_NUMBER}")
    line.gsub!("%WEBSERVER%", "#{WEBSERVER}")
    file.puts line
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ruby_odata-0.2.0.beta1 test/setpath.rb
ruby_odata-0.1.6 test/setpath.rb
ruby_odata-0.1.5 test/setpath.rb
ruby_odata-0.1.4 test/setpath.rb
ruby_odata-0.1.3 test/setpath.rb
ruby_odata-0.1.2 test/setpath.rb
ruby_odata-0.1.1 test/setpath.rb
ruby_odata-0.1.0 test/setpath.rb