Class: Gitlab::Ci::Config::External::File::Local

Inherits:
Base
  • Object
show all
Extended by:
Utils::Override
Includes:
Utils::StrongMemoize
Defined in:
lib/gitlab/ci/config/external/file/local.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::Override

extended, extensions, included, method_added, override, prepended, queue_verification, verify!

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) ⇒ Local

Returns a new instance of Local.


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

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

  super
end

Instance Method Details

#contentObject


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

def content
  strong_memoize(:content) { fetch_local_content }
end