Class: BuildMaster::IisDriver
- Inherits:
-
Object
- Object
- BuildMaster::IisDriver
- Defined in:
- lib/buildmaster/project/windows/iis_driver.rb
Instance Method Summary collapse
-
#initialize(cotta = Cotta.new) ⇒ IisDriver
constructor
A new instance of IisDriver.
- #start ⇒ Object
- #status ⇒ Object
- #stop ⇒ Object
Constructor Details
#initialize(cotta = Cotta.new) ⇒ IisDriver
Returns a new instance of IisDriver.
3 4 5 6 7 8 9 |
# File 'lib/buildmaster/project/windows/iis_driver.rb', line 3 def initialize(cotta=Cotta.new) @cotta = cotta # @executable = 'C:\\WINDOWS\\system32\\iisreset.exe' # if (not cotta.file(@executable).exists?) # raise "#{@executable} not found" # end end |
Instance Method Details
#start ⇒ Object
15 16 17 |
# File 'lib/buildmaster/project/windows/iis_driver.rb', line 15 def start execute('start') end |
#status ⇒ Object
11 12 13 |
# File 'lib/buildmaster/project/windows/iis_driver.rb', line 11 def status execute('query') end |
#stop ⇒ Object
19 20 21 |
# File 'lib/buildmaster/project/windows/iis_driver.rb', line 19 def stop execute('stop') end |