Class: Zold::Pull

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

Overview

PULL command

Instance Method Summary collapse

Constructor Details

#initialize(wallets:, remotes:, copies:, log: Log::Quiet.new) ⇒ Pull

Returns a new instance of Pull.



33
34
35
36
37
38
# File 'lib/zold/commands/pull.rb', line 33

def initialize(wallets:, remotes:, copies:, log: Log::Quiet.new)
  @wallets = wallets
  @remotes = remotes
  @copies = copies
  @log = log
end

Instance Method Details

#run(args = []) ⇒ Object



40
41
42
43
44
# File 'lib/zold/commands/pull.rb', line 40

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, copies: @copies, log: @log).run(args)
end