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