Class: Indocker::Artifacts::Remote

Inherits:
Base
  • Object
show all
Defined in:
lib/indocker/artifacts/remote.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#is_git?

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

#filesObject (readonly)

Returns the value of attribute files.



2
3
4
# File 'lib/indocker/artifacts/remote.rb', line 2

def files
  @files
end

#nameObject (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