31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# File 'lib/octopress-deploy/s3.rb', line 31
def push
@bucket = @s3.buckets[@bucket_name]
if !@bucket.exists?
abort "Bucket not found: '#{@bucket_name}'. Check your configuration or create a bucket using: `octopress deploy add-bucket`"
else
if File.exist?(@local)
puts "Syncing #{@local} files to #{@bucket_name} on S3."
write_files
delete_files if delete_files?
status_message
else
abort "Cannot find site build at #{@local}. Be sure to build your site first."
end
end
end
|