Sha256: f839a13736064d5678492174af95bbf1ac401ab1c1317e7c69bf0f723cc1a9aa
Contents?: true
Size: 557 Bytes
Versions: 15
Compression:
Stored size: 557 Bytes
Contents
require 'awestruct/deploy/base_deploy' require 'ruby-s3cmd' module Awestruct module Deploy class S3Deploy < Base def initialize( site_config, deploy_config ) super @bucket = deploy_config['bucket'] end def publish_site $LOG.info "Syncing #{@site_path} to bucket #{@bucket}" if $LOG.info? s3cmd = RubyS3Cmd::S3Cmd.new s3cmd.sync("#{@site_path}/", @bucket) $LOG.info "DONE" if $LOG.info? end end end end Awestruct::Deployers.instance[ :s3 ] = Awestruct::Deploy::S3Deploy
Version data entries
15 entries across 15 versions & 1 rubygems