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



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

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.



11
12
13
# File 'lib/daytona/common/image.rb', line 11

def archive_path
  @archive_path
end

#source_pathObject (readonly)

Returns the value of attribute source_path.



10
11
12
# File 'lib/daytona/common/image.rb', line 10

def source_path
  @source_path
end