S3Sync.net
February 02, 2014, 01:26:56 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / Closed Bugs / Re: NoMethodError when uploading dir instead of dir contents on: February 23, 2007, 02:03:04 PM
No worries! Glad to see so many new features in the new version!
2  General Category / Closed Bugs / NoMethodError when uploading dir instead of dir contents on: February 22, 2007, 02:10:41 PM
I think I hit a new bug in 1.1.0

This works fine:

Quote
ruby -I s3sync s3sync/s3sync.rb -r --ssl --delete testUploads/ myBucket:testUploads

But this produces an error:

Quote
ruby -I s3sync s3sync/s3sync.rb -r --ssl --delete testUploads myBucket:testUploadsParent

Notice the difference is the lack of trailing slash on the source dir, indicating I want the actual dir itself, not just its contents, uploaded to the destination dir.

The error, the sole output of the command, is:

Quote
s3sync/s3sync.rb:124:in `main': undefined method `[]' for nil:NilClass (NoMethodError)
        from s3sync/s3sync.rb:681

Not sure the cause of this. But if I replace my old version (1.0.13) of s3sync for the new one, everything works fine.
3  General Category / Feature Requests / Re: s3sync.rb to run without current directory defined to where s3try.rb, S3.rb on: February 22, 2007, 01:16:03 PM
Another possibility is to use the -I option when calling ruby from your shell script, which allows you to specify a ruby lib dir without using an envionment var. My shell script has lines that look like:

ruby -I s3syncDir s3syncDir/s3sync.rb -r --ssl --delete  /home/foo/bin bucketName:home/foo

... and the working dir of my shell script is NOT s3syncDir.

Sorry if this was mentioned previously, but I didn't see it in the AWS thread (just re-skimmed briefly).
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!