Class: S3Secure::Encryption

Inherits:
Command show all
Defined in:
lib/s3_secure/encryption.rb,
lib/s3_secure/encryption/base.rb,
lib/s3_secure/encryption/list.rb,
lib/s3_secure/encryption/show.rb,
lib/s3_secure/encryption/enable.rb,
lib/s3_secure/encryption/disable.rb

Defined Under Namespace

Classes: Base, Disable, Enable, List, Show

Instance Method Summary collapse

Methods inherited from Command

alter_command_description, command_help, dispatch, exit_on_failure?, website

Instance Method Details

#disable(bucket) ⇒ Object



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

def disable(bucket)
  Disable.new(options.merge(bucket: bucket)).run
end

#enable(bucket) ⇒ Object



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

def enable(bucket)
  Enable.new(options.merge(bucket: bucket)).run
end

#listObject



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

def list
  List.new(options).run
end

#show(bucket) ⇒ Object



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

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