Class: Gitlab::Ci::Config::External::File::Remote

Inherits:
Base
  • Object
show all
Includes:
Utils::StrongMemoize
Defined in:
lib/gitlab/ci/config/external/file/remote.rb

Constant Summary

Constants inherited from Base

Base::YAML_WHITELIST_EXTENSION

Instance Attribute Summary

Attributes inherited from Base

#context, #errors, #location, #params

Instance Method Summary collapse

Methods included from Utils::StrongMemoize

#clear_memoization, #strong_memoize, #strong_memoized?

Methods inherited from Base

#error_message, #invalid_extension?, #invalid_location_type?, #matching?, #to_hash, #valid?

Constructor Details

#initialize(params, context) ⇒ Remote

Returns a new instance of Remote.


11
12
13
14
15
# File 'lib/gitlab/ci/config/external/file/remote.rb', line 11

def initialize(params, context)
  @location = params[:remote]

  super
end

Instance Method Details

#contentObject


17
18
19
# File 'lib/gitlab/ci/config/external/file/remote.rb', line 17

def content
  strong_memoize(:content) { fetch_remote_content }
end