class Zold::Pull

PULL command

Public Class Methods

new(wallets:, remotes:, copies:, log: Log::NULL) click to toggle source
# File lib/zold/commands/pull.rb, line 38
def initialize(wallets:, remotes:, copies:, log: Log::NULL)
  @wallets = wallets
  @remotes = remotes
  @copies = copies
  @log = log
end

Public Instance Methods

run(args = []) click to toggle source
# File lib/zold/commands/pull.rb, line 45
def run(args = [])
  Zold::Clean.new(wallets: @wallets, copies: @copies, log: @log).run(args)
  Zold::Fetch.new(wallets: @wallets, remotes: @remotes, copies: @copies, log: @log).run(args)
  Zold::Merge.new(wallets: @wallets, remotes: @remotes, copies: @copies, log: @log).run(args)
end