Aldric Giacomoni wrote:
> In Windows:
>>> Dir.chdir 'c:/myscripts'
> => 0
>>> Dir.pwd
> => "c:/myscripts"
> 
> I think you're making a mountain out of a molehill. Ruby interprets the 
> path properly. Keep it to '/' and do input sanitation when the user 
> tries to give you a '\'
> 
> Yet, I don't know what you're doing, so..

No mountain, no molehill :-)
What I'm doing was clearly (I hope) explained in my 2 opening posts but 
just to be clear here it is again

I'm actually trying to call cap deploy with the result of this function

    logger.debug("Creating domain")
    cmd = create_command_line_string("cap cloud_deploy:setup -S
destination=#{self.requested_url}")
    response = `#{cmd}`
    exit_code = $?
    logger.debug("@@@@ Create domain response = #{response}, Exit code =
#{exit_code}")
    exit_code

This is producing a command "c:/development/cloud/cap cloud_deploy:setup
-S etc..."
Which is wrong on Windows :-)

> 
>>> PLATFORM
> => "i386-mswin32"

Thank you :-)
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to