Class: Daytona::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/daytona/common/image.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source_path:, archive_path: nil) ⇒ Context

Returns a new instance of Context.

Parameters:

  • source_path (String)

    The path to the source file or directory

  • archive_path (String, nil) (defaults to: nil)

    The path inside the archive file in object storage



18
19
20
21
# File 'lib/daytona/common/image.rb', line 18

def initialize(source_path:, archive_path: nil)
  @source_path = source_path
  @archive_path = archive_path
end

Instance Attribute Details

#archive_pathObject (readonly)

Returns the value of attribute archive_path.



14
15
16
# File 'lib/daytona/common/image.rb', line 14

def archive_path
  @archive_path
end

#source_pathObject (readonly)

Returns the value of attribute source_path.



13
14
15
# File 'lib/daytona/common/image.rb', line 13

def source_path
  @source_path
end