Class: Zold::Pull

Inherits:
Object
  • Object
show all
Includes:
ThreadBadge
Defined in:
lib/zold/commands/pull.rb

Overview

PULL command

Instance Method Summary collapse

Constructor Details

#initialize(wallets:, remotes:, copies:, log: Log::NULL) ⇒ Pull

Returns a new instance of Pull.



38
39
40
41
42
43
# 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

Instance Method Details

#run(args = []) ⇒ Object



45
46
47
48
49
# 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