Sha256: 9afeb6537f93ad737a6bd7503d8800f5f180220244ab575810ee8992a8841bd3
Contents?: true
Size: 595 Bytes
Versions: 29
Compression:
Stored size: 595 Bytes
Contents
module Kontena::Cli::Stacks module YAML class RegistryLoader < StackFileLoader def self.match?(source, parent = nil) source =~ /\A[a-zA-Z0-9\_\.\-]+\/[a-zA-Z0-9\_\.\-]+(?::.*)?\z/ && !FileLoader.match?(source, parent) end def read_content Kontena::StacksCache.pull(Kontena::Cli::Stacks::StackName.new(source)) end def origin "registry" end def registry account = Kontena::Cli::Config.current_account raise "Current account not set" if account.nil? account.stacks_url end end end end
Version data entries
29 entries across 29 versions & 2 rubygems