From: saurabh purnaye Date: 2009-09-15T14:42:46+09:00 Subject: Re: What's the best cross platform approach (Windows/Mac) to deploy a simple service/daemon (with s --0016e645f9266984b204739740af Content-Type: text/plain; charset=ISO-8859-1 Hi, There are many ways to get the information about the information about the operating system and implement the logic as 1. get the system info at ENV variable ENV.to_hash.each do |key, value| puts("#{key} - #{value}") end 2. use 'rbconfig' require 'rbconfig' case Config::CONFIG['host_os'] when /mswin|windows/i puts "its windows" else puts "Its not!" end On Tue, Sep 15, 2009 at 11:01 AM, Bigmac Turdsplash wrote: > i would create separate functions for each Os, set up a vm network... > windows xp, vista and mac... just to test your scripts... > > if os = 'windows xp' then > # perform these functions > else > > if os = 'osx mac' then > # perform tghese functions > > ...etc... > > this is just to give you a idea of how i would do it... its improper... > i hope it helps... > -- > Posted via http://www.ruby-forum.com/. > > -- -- Thanks and Regards Saurabh Purnaye +91-9922071155 skype: sorab_pune yahoo & gtalk: saurabh.purnaye msn: psaurabh@live.com -- Please don't print this e-mail unless you really need to. --0016e645f9266984b204739740af--