Sha256: 53a8ef7433684dfb911c423dfdf66806bd72bc15db641c88edd67ea21be2ccbb

Contents?: true

Size: 500 Bytes

Versions: 8

Compression:

Stored size: 500 Bytes

Contents

require 'iis_object'

module IISConfig

  class VirtualDirectory < IISObject

    def name(name)
      @name = name
      @app_pool = nil
    end

    def path(path)
      @path = path
    end

    def physical_path(path)
      @physical_path = path
    end

    def build_commands(application)
      commands = []

      commands << %W{ADD VDIR /app.name:#{application} /path:#{@path} /physicalPath:#{@physical_path.gsub(/\//, '\\')}}

      commands
    end

  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
iisconfig-0.8.0 lib/iisconfig/virtual_directory.rb
iisconfig-0.7.0 lib/iisconfig/virtual_directory.rb
iisconfig-0.6.0 lib/iisconfig/virtual_directory.rb
iisconfig-0.5.0 lib/iisconfig/virtual_directory.rb
iisconfig-0.4.0 lib/iisconfig/virtual_directory.rb
iisconfig-0.3.0 lib/iisconfig/virtual_directory.rb
iisconfig-0.2.3 lib/iisconfig/virtual_directory.rb
iisconfig-0.2.2 lib/iisconfig/virtual_directory.rb