Class: RBoss::ProfileFolder
- Inherits:
-
Object
- Object
- RBoss::ProfileFolder
show all
- Includes:
- FileUtils, Component
- Defined in:
- lib/rboss/components/profile_folder.rb
Instance Method Summary
collapse
Methods included from Component
#configure, #initialize, #load_yaml, #new_file_processor
Instance Method Details
#process ⇒ Object
29
30
31
32
33
34
35
|
# File 'lib/rboss/components/profile_folder.rb', line 29
def process
if File.exists? @jboss.profile
remove_profile_folder
end
@logger.info "Copying profile #{@config} to #{@jboss.profile_name}..."
cp_r "#{@jboss}/server/#{@config}", "#{@jboss.profile}"
end
|
#remove_profile_folder ⇒ Object
37
38
39
40
|
# File 'lib/rboss/components/profile_folder.rb', line 37
def remove_profile_folder
@logger.info "Removing installed profile #{@jboss.profile_name}"
rm_rf @jboss.profile
end
|