Module: Avm::Git::Commit::Deploy::Appended
- Defined in:
- lib/avm/git/commit/deploy/appended.rb,
lib/avm/git/commit/deploy/appended/base.rb,
lib/avm/git/commit/deploy/appended/directory.rb,
lib/avm/git/commit/deploy/appended/file_content.rb
Defined Under Namespace
Classes: Base, Directory, FileContent
Instance Method Summary
collapse
Instance Method Details
#append_directories(directories) ⇒ Object
19
20
21
22
|
# File 'lib/avm/git/commit/deploy/appended.rb', line 19
def append_directories(directories)
directories.each { |directory| append_directory(directory) }
self
end
|
#append_directory(directory) ⇒ Object
14
15
16
17
|
# File 'lib/avm/git/commit/deploy/appended.rb', line 14
def append_directory(directory)
appended << ::Avm::Git::Commit::Deploy::Appended::Directory.new(self, directory)
self
end
|
#append_file_content(target_path, content) ⇒ Object
24
25
26
27
28
|
# File 'lib/avm/git/commit/deploy/appended.rb', line 24
def append_file_content(target_path, content)
appended << ::Avm::Git::Commit::Deploy::Appended::FileContent
.new(self, target_path, content)
self
end
|
#appended ⇒ Object
10
11
12
|
# File 'lib/avm/git/commit/deploy/appended.rb', line 10
def appended
@appended ||= []
end
|
#copy_appended_content ⇒ Object
30
31
32
|
# File 'lib/avm/git/commit/deploy/appended.rb', line 30
def copy_appended_content
appended.each(&:copy_to_build_dir)
end
|