Module: Proteus::Commands::Clean

Defined in:
lib/proteus/commands/clean.rb

Class Method Summary collapse

Class Method Details

.included(thor_class) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/proteus/commands/clean.rb', line 6

def self.included(thor_class)
  thor_class.class_eval do |klass|

    desc "clean", "Deletes rendered module manifests"
    long_desc <<-LONGDESC
      Deletes rendered module manifests without running Terraform
    LONGDESC
    def clean
      module_manager = Proteus::Modules::Manager.new(context: context, environment: environment)
      module_manager.clean
    end

  end
end