Class: S3Secure::CLI::Lifecycle

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

Constant Summary collapse

Add =
Lifecycle::Add

Instance Method Summary collapse

Methods inherited from S3Secure::Command

alter_command_description, command_help, dispatch, exit_on_failure?, website

Instance Method Details

#add(bucket) ⇒ Object



23
24
25
# File 'lib/s3_secure/cli/lifecycle.rb', line 23

def add(bucket)
  S3Secure::Lifecycle::Add.new(options.merge(bucket: bucket)).run
end

#listObject



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

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

#remove(bucket) ⇒ Object



29
30
31
# File 'lib/s3_secure/cli/lifecycle.rb', line 29

def remove(bucket)
  S3Secure::Lifecycle::Remove.new(options.merge(bucket: bucket)).run
end

#show(bucket) ⇒ Object



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

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