Class: IISConfig::VirtualDirectory
- Defined in:
- lib/iisconfig/virtual_directory.rb
Instance Method Summary collapse
- #build_commands(application) ⇒ Object
- #name(name) ⇒ Object
- #path(path) ⇒ Object
- #physical_path(path) ⇒ Object
Methods inherited from IISObject
Instance Method Details
#build_commands(application) ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/iisconfig/virtual_directory.rb', line 20 def build_commands(application) commands = [] commands << %W{ADD VDIR /app.name:#{application} /path:#{@path} /physicalPath:#{@physical_path.gsub(/\//, '\\')}} commands end |
#name(name) ⇒ Object
7 8 9 10 |
# File 'lib/iisconfig/virtual_directory.rb', line 7 def name(name) @name = name @app_pool = nil end |
#path(path) ⇒ Object
12 13 14 |
# File 'lib/iisconfig/virtual_directory.rb', line 12 def path(path) @path = path end |
#physical_path(path) ⇒ Object
16 17 18 |
# File 'lib/iisconfig/virtual_directory.rb', line 16 def physical_path(path) @physical_path = path end |