Class: S3Secure::CLI::Policy

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

Constant Summary collapse

Enforce =
Policy::Enforce

Instance Method Summary collapse

Methods inherited from S3Secure::Command

alter_command_description, command_help, dispatch, exit_on_failure?, website

Instance Method Details

#enforce_ssl(bucket) ⇒ Object



21
22
23
# File 'lib/s3_secure/cli/policy.rb', line 21

def enforce_ssl(bucket)
  S3Secure::Policy::Enforce.new(options.merge(bucket: bucket, sid: "ForceSSLOnlyAccess")).run
end

#listObject



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

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

#show(bucket) ⇒ Object



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

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

#unforce_ssl(bucket) ⇒ Object



27
28
29
# File 'lib/s3_secure/cli/policy.rb', line 27

def unforce_ssl(bucket)
  S3Secure::Policy::Unforce.new(options.merge(bucket: bucket, sid: "ForceSSLOnlyAccess")).run
end