Class: Monolith::DefaultLocation
Instance Method Summary
collapse
#clean, #initialize
Instance Method Details
#install ⇒ Object
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# File 'lib/monolith/locations/default.rb', line 4
def install
if File.directory?(@destination)
rel_dest = Monolith.formatter.rel_dir(@destination)
Monolith.formatter.skip(@cookbook, "#{rel_dest} already exists")
else
Monolith.formatter.install(@cookbook, @destination)
FileUtils.cp_r(@cookbook.path, @destination)
end
true
end
|
#update ⇒ Object
18
19
20
21
22
23
24
|
# File 'lib/monolith/locations/default.rb', line 18
def update
Monolith.formatter.skip(@cookbook, "Not updating community cookbook")
nil
end
|