Class: Jets::Commands::Clean

Inherits:
Base
  • Object
show all
Defined in:
lib/jets/commands/clean/log.rb,
lib/jets/commands/clean.rb,
lib/jets/commands/clean/base.rb,
lib/jets/commands/clean/build.rb

Overview

The thing that limits this implementation is that there needs to be at least one lambda function created from an internal jets function. Example:

/aws/lambda/demo-dev-2-jets-preheat_job-warm
/aws/lambda/demo-dev-2-jets-public_controller-show

We’re doing this because Jets.extra environments can create additional matching log groups and we don’t want to overly-aggressively delete them.

The ‘keep_prefixes(log_group_names)` method calcuates the log groups to keep.

Defined Under Namespace

Classes: Base, Build, Log

Instance Method Summary collapse

Methods inherited from Base

autocomplete, banner, dispatch, eager_load!, help_list, inherited, klass_from_namespace, namespace_from_class, namespaced_commands, perform, subclasses

Instance Method Details

#buildObject



15
16
17
# File 'lib/jets/commands/clean.rb', line 15

def build
  Build.new(options).clean
end

#logObject



9
10
11
# File 'lib/jets/commands/clean.rb', line 9

def log
  Log.new(options).clean
end