Class: S3Secure::CLI::Encryption

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

Constant Summary collapse

Enable =
Encryption::Enable

Instance Method Summary collapse

Methods inherited from S3Secure::Command

alter_command_description, command_help, dispatch, exit_on_failure?, website

Instance Method Details

#disable(bucket) ⇒ Object



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

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

#enable(bucket) ⇒ Object



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

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

#listObject



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

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

#show(bucket) ⇒ Object



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

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