Class: Indocker::Artifacts::Remote
- Defined in:
- lib/indocker/artifacts/remote.rb
Instance Attribute Summary collapse
-
#files ⇒ Object
readonly
Returns the value of attribute files.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #build_source_path(path) ⇒ Object
-
#initialize(name:, files: [], source_path: nil, target_path: nil) ⇒ Remote
constructor
A new instance of Remote.
Methods inherited from Base
Constructor Details
#initialize(name:, files: [], source_path: nil, target_path: nil) ⇒ Remote
Returns a new instance of Remote.
4 5 6 7 8 9 10 11 12 |
# File 'lib/indocker/artifacts/remote.rb', line 4 def initialize(name:, files: [], source_path: nil, target_path: nil) @name = name @files = build_all_files( files: files, source_path: source_path, target_path: target_path, ) end |
Instance Attribute Details
#files ⇒ Object (readonly)
Returns the value of attribute files.
2 3 4 |
# File 'lib/indocker/artifacts/remote.rb', line 2 def files @files end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
2 3 4 |
# File 'lib/indocker/artifacts/remote.rb', line 2 def name @name end |
Instance Method Details
#build_source_path(path) ⇒ Object
14 15 16 |
# File 'lib/indocker/artifacts/remote.rb', line 14 def build_source_path(path) path end |