class S3Ranger::CLI::ListBuckets

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/s3ranger/cli.rb, line 77
def initialize
  super 'listbuckets', false, false, false

  @short_desc = "List all available buckets for your user"
end

Public Instance Methods

run(s3, bucket, key, file, args) click to toggle source
# File lib/s3ranger/cli.rb, line 83
def run s3, bucket, key, file, args
  s3.buckets.each do |bkt|
    puts "#{bkt.name}"
  end
end