sprinkle-tool / sprinkle

Sprinkle is a software provisioning tool you can use to build remote servers with. eg. to install a Rails, or Sinatra stack on a brand new slice directly after its been created
https://github.com/sprinkle-tool/sprinkle
MIT License
1.15k stars 138 forks source link

source installer only working with "wget" #44

Closed bragma closed 11 years ago

bragma commented 13 years ago

source.rb allows to specify a path to a source file to be downloaded (using wget), built and installed. There is a change in the source code that allows to specify a pre-existing file (i.e. on the destination server). In this case "cp" is used instead of "wget".

The problem is that file existance is checked locally (on the machine runing sprinkle using File.exists?) instead that on the remote server, and then a "cp" command is issued remotely. The cp command will normally fail because paths don't match.

I am not skilled enough to fix it myself. As a suggestion, allowing to transfer the file from the server running sprinkle (i.e. like using the transfer installer) would prove really useful.

joshgoebel commented 11 years ago

I'm not sure I have any idea what you're talking about. Can you reproduce with the latest code from master or should I close this? I don't see any mention of File.exists? in the source.rb source.

joshgoebel commented 11 years ago

Ping

joshgoebel commented 11 years ago

Closing due to lack of user response and this is a very old issue that may quite possible be solved in newer releases.