Sha256: 1a0759da5dfb6843b016c8c2dfb28b82617ce461e8475ae30585c074efa7c743

Contents?: true

Size: 1.08 KB

Versions: 3

Compression:

Stored size: 1.08 KB

Contents

class S3Secure::CLI
  class AccessLogs < S3Secure::Command
    class_option :quiet, type: :boolean

    desc "list", "List bucket access_logs setting"
    long_desc Help.text("access_logs/list")
    option :format, desc: "Format options: #{CliFormat.formats.join(', ')}"
    option :access_logs, type: :boolean, desc: "Filter for access_logs: all, true, false"
    def list
      S3Secure::AccessLogs::List.new(options).run
    end

    desc "show BUCKET", "show bucket access_logs"
    long_desc Help.text("access_logs/show")
    def show(bucket)
      S3Secure::AccessLogs::Show.new(options.merge(bucket: bucket)).run
    end

    desc "enable BUCKET", "enable bucket access_logs"
    long_desc Help.text("access_logs/enable")
    option :target_bucket, desc: "Target s3 bucket"
    def enable(bucket)
      S3Secure::AccessLogs::Enable.new(options.merge(bucket: bucket)).run
    end

    desc "disable BUCKET", "disable bucket access_logs"
    long_desc Help.text("access_logs/disable")
    def disable(bucket)
      S3Secure::AccessLogs::Disable.new(options.merge(bucket: bucket)).run
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
s3-secure-0.7.0 lib/s3_secure/cli/access_logs.rb
s3-secure-0.6.1 lib/s3_secure/cli/access_logs.rb
s3-secure-0.6.0 lib/s3_secure/cli/access_logs.rb