Class: Kontena::Cli::Stacks::YAML::RegistryLoader
Instance Attribute Summary
#parent, #source
Class Method Summary
collapse
Instance Method Summary
collapse
#content, #dependencies, #flat_dependencies, for, inherited, #initialize, #inspect, loaders, #reader, #stack_name, #to_h, #yaml
Class Method Details
.match?(source, parent = nil) ⇒ Boolean
4
5
6
|
# File 'lib/kontena/cli/stacks/yaml/stack_file_loader/registry_loader.rb', line 4
def self.match?(source, parent = nil)
source =~ /\A[a-zA-Z0-9\_\.\-]+\/[a-zA-Z0-9\_\.\-]+(?::.*)?\z/ && !FileLoader.match?(source, parent)
end
|
Instance Method Details
#origin ⇒ Object
12
13
14
|
# File 'lib/kontena/cli/stacks/yaml/stack_file_loader/registry_loader.rb', line 12
def origin
"registry"
end
|
#registry ⇒ Object
16
17
18
19
20
|
# File 'lib/kontena/cli/stacks/yaml/stack_file_loader/registry_loader.rb', line 16
def registry
account = Kontena::Cli::Config.current_account
raise "Current account not set" if account.nil?
account.stacks_url
end
|