Sha256: 2e22d8b7a7259b16bff5fe043b9e276c57bac5c8e3d75c9a09351d9ea840bb3c
Contents?: true
Size: 458 Bytes
Versions: 4
Compression:
Stored size: 458 Bytes
Contents
module IISConfig class Runner def self.execute_command(args) args.flatten! tool = :appcmd puts " #{tool.to_s} #{args.join(' ')}" result = `c:/windows/system32/inetsrv/appcmd #{args.join(' ')}"` raise Exception.new($?.exitstatus) unless $?.success? result end def self.run_commands(commands) commands.each do |c| Runner.execute_command c end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
iisconfig-0.2.3 | lib/iisconfig/runner.rb |
iisconfig-0.2.2 | lib/iisconfig/runner.rb |
iisconfig-0.2.1 | lib/iisconfig/runner.rb |
iisconfig-0.2.0 | lib/iisconfig/runner.rb |