Class: RBoss::Restore

Inherits:
Slimming show all
Defined in:
lib/rboss/components/restore_slimming.rb

Overview

A class for restore slimmed services in a JBoss profile

Configuration:

See the RBoss::Slimming class for supported services

author: Marcelo Guimarães <[email protected]>

Instance Method Summary collapse

Methods inherited from Slimming

#configure, #process, #slim

Methods included from Component

#configure, #initialize, #load_yaml, #new_file_processor

Instance Method Details

#handle(file) ⇒ Object



39
40
41
42
# File 'lib/rboss/components/restore_slimming.rb', line 39

def handle file
  file = "#{@jboss.profile}/" + file unless file.start_with? '/'
  mv(file + ".rej", file) if File.exist?(file + ".rej")
end

#log(service) ⇒ Object



35
36
37
# File 'lib/rboss/components/restore_slimming.rb', line 35

def log service
  @logger.info "Enabling #{service}"
end