Method: Amazon#bucket

Defined in:
lib/cluster/infrastructures/amazon.rb

#bucketObject



516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
# File 'lib/cluster/infrastructures/amazon.rb', line 516

def bucket
  unless @options.cluster_bucket
    puts "#{Cluster::NAME} has not been configured with a bucket for client materials."
    exit 2
  end

  @bucket ||= sss.bucket(@options.cluster_bucket, true)

  unless @bucket
    puts "#{Cluster::NAME} bucket named #{@options.cluster_bucket} cannot be created or accessed."
    exit 2
  else
    @bucket
  end
end