class ZAWS::Command::Bucket

Attributes

aws[RW]
out[RW]
print_exit_code[RW]

Public Class Methods

new(*args) click to toggle source
Calls superclass method
# File lib/zaws/command/bucket.rb, line 12
def initialize(*args)
  super
  shellout=ZAWS::Helper::Shell.new
  awscli = ZAWS::AWSCLI.new(shellout)
  @aws = ZAWS::AWS.new(shellout, awscli)
  @out = $stdout
  @print_exit_code = false
end

Public Instance Methods

declare(name) click to toggle source
# File lib/zaws/command/bucket.rb, line 23
def declare(name)
  @aws.s3.bucket.declare(name, options[:region], @out)
end
sync(bucket_name) click to toggle source
# File lib/zaws/command/bucket.rb, line 30
def sync(bucket_name)
  @aws.s3.bucket.sync(options[:region], bucket_name, options[:dest])
end