Sha256: b30d1c87bb1d3a49cdbe68c2b243706066bf61da236ec2b59a545dcb6278bb6d

Contents?: true

Size: 517 Bytes

Versions: 6

Compression:

Stored size: 517 Bytes

Contents

# frozen_string_literal: true

module Jiminy
  module Reporting
    module CIProviders
      module Local
        class Artifact
          attr_accessor :url

          def self.all
            Dir[Jiminy.configuration.temp_file_location].map do |filepath|
              new(url: filepath)
            end
          end

          def initialize(attributes)
            attributes.each do |key, value|
              public_send(:"#{key}=", value)
            end
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jiminy-0.4.0 lib/jiminy/reporting/ci_providers/local/artifact.rb
jiminy-0.3.0 lib/jiminy/reporting/ci_providers/local/artifact.rb
jiminy-0.2.0 lib/jiminy/reporting/ci_providers/local/artifact.rb
jiminy-0.1.1 lib/jiminy/reporting/ci_providers/local/artifact.rb
jiminy-0.1.0 lib/jiminy/reporting/ci_providers/local/artifact.rb
jiminy-0.1.0.pre1 lib/jiminy/reporting/ci_providers/local/artifact.rb