Sha256: 4d8b6f44c9345353b6b916582b4bc3c4a8feb9c42a08e9fba4da44003814fd12

Contents?: true

Size: 485 Bytes

Versions: 4

Compression:

Stored size: 485 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}"}

      commands
    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
iisconfig-0.0.1 lib/iisconfig/virtual_directory.rb
iisconfig-0.0.1.pre3 lib/iisconfig/virtual_directory.rb
iisconfig-0.0.1.pre2 lib/iisconfig/virtual_directory.rb
iisconfig-0.0.1.pre1 lib/iisconfig/virtual_directory.rb