Class: Gitlab::Ci::Config::External::File::Local
- 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
- #content ⇒ Object
-
#initialize(params, context) ⇒ Local
constructor
A new instance of Local.
- #metadata ⇒ Object
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
#eql?, #error_message, #hash, #invalid_extension?, #invalid_location_type?, #matching?, #to_hash, #valid?, #validate!
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
#content ⇒ Object
18 19 20 |
# File 'lib/gitlab/ci/config/external/file/local.rb', line 18 def content strong_memoize(:content) { fetch_local_content } end |
#metadata ⇒ Object
22 23 24 25 26 27 28 29 30 |
# File 'lib/gitlab/ci/config/external/file/local.rb', line 22 def super.merge( type: :local, location: masked_location, blob: masked_blob, raw: masked_raw, extra: {} ) end |