class Kontena::Cli::Stacks::Registry::PullCommand
Public Instance Methods
execute()
click to toggle source
# File lib/kontena/cli/stacks/registry/pull_command.rb, line 15 def execute target = no_cache? ? stacks_client : Kontena::StacksCache content = target.pull(stack_name) if return? return content elsif file File.write(file, content) puts pastel.green("Wrote #{content.bytesize} bytes to #{file}") else puts content end end