Class: S3Secure::CLI::PublicAccess

Inherits:
S3Secure::Command show all
Defined in:
lib/s3_secure/cli/public_access.rb

Instance Method Summary collapse

Methods inherited from S3Secure::Command

alter_command_description, command_help, dispatch, exit_on_failure?, website

Instance Method Details

#block(bucket) ⇒ Object



22
23
24
# File 'lib/s3_secure/cli/public_access.rb', line 22

def block(bucket)
  S3Secure::PublicAccess::Block.new(options.merge(bucket: bucket)).run
end

#listObject



9
10
11
# File 'lib/s3_secure/cli/public_access.rb', line 9

def list
  S3Secure::PublicAccess::List.new(options).run
end

#show(bucket) ⇒ Object



15
16
17
# File 'lib/s3_secure/cli/public_access.rb', line 15

def show(bucket)
  S3Secure::PublicAccess::Show.new(options.merge(bucket: bucket)).run
end

#unblock(bucket) ⇒ Object



28
29
30
# File 'lib/s3_secure/cli/public_access.rb', line 28

def unblock(bucket)
  S3Secure::PublicAccess::Unblock.new(options.merge(bucket: bucket)).run
end