Class: DPL::Provider::Bintray::Artifact

Inherits:
Object
  • Object
show all
Defined in:
lib/dpl/provider/bintray.rb

Overview

This class represents an artifact (file) to be uploaded to Bintray.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(local_path, upload_path, matrix_params) ⇒ Artifact

Returns a new instance of Artifact.



476
477
478
479
480
# File 'lib/dpl/provider/bintray.rb', line 476

def initialize(local_path, upload_path, matrix_params)
  @local_path = local_path
  @upload_path = upload_path
  @matrix_params = matrix_params
end

Instance Attribute Details

#local_pathObject (readonly)

Returns the value of attribute local_path.



490
491
492
# File 'lib/dpl/provider/bintray.rb', line 490

def local_path
  @local_path
end

#matrix_paramsObject (readonly)

Returns the value of attribute matrix_params.



492
493
494
# File 'lib/dpl/provider/bintray.rb', line 492

def matrix_params
  @matrix_params
end

#upload_pathObject (readonly)

Returns the value of attribute upload_path.



491
492
493
# File 'lib/dpl/provider/bintray.rb', line 491

def upload_path
  @upload_path
end

Instance Method Details

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


486
487
488
# File 'lib/dpl/provider/bintray.rb', line 486

def eql?(other)
  @localPath == other.local_path
end

#hashObject



482
483
484
# File 'lib/dpl/provider/bintray.rb', line 482

def hash
  return @localPath.hash
end