Sha256: a69d1ac6fd57af4a76cf8e56e9e85348f3350c804799a9196e7d1cb1c0468f8d

Contents?: true

Size: 452 Bytes

Versions: 6

Compression:

Stored size: 452 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 result
      result
    end

    def self.run_commands(commands)
      commands.each do |c|
        Runner.execute_command c
      end
    end

  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
iisconfig-0.1.0 lib/iisconfig/runner.rb
iisconfig-0.0.2 lib/iisconfig/runner.rb
iisconfig-0.0.1 lib/iisconfig/runner.rb
iisconfig-0.0.1.pre3 lib/iisconfig/runner.rb
iisconfig-0.0.1.pre2 lib/iisconfig/runner.rb
iisconfig-0.0.1.pre1 lib/iisconfig/runner.rb