Sha256: 8cc14afab68a75a02536b21932bd800bd519e27a7c28c0228036dd14b011fe90
Contents?: true
Size: 631 Bytes
Versions: 2
Compression:
Stored size: 631 Bytes
Contents
$:.unshift File.join(File.dirname(__FILE__), '..') require 'cotta/cotta' require 'cotta/in_memory_system' module BuildMaster class IisDriver def initialize(cotta=Cotta.new) @cotta = cotta @executable = 'C:\\WINDOWS\\system32\\iisreset.exe' if (not File.exists?(@executable)) raise "#{@executable} not found" end end def status execute('query') end def start execute('start') end def stop execute('stop') end private def execute(command) #@cotta.shell("#{@executable} /#{command}") @cotta.shell("sc #{command} W3SVC") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
BuildMaster-0.9.0 | lib/buildmaster/windows/iis_driver.rb |
BuildMaster-0.9.1 | lib/buildmaster/windows/iis_driver.rb |