Class: EasySync::SyncRunner

Inherits:
Object
  • Object
show all
Defined in:
lib/easy_sync/sync_runner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSyncRunner

Returns a new instance of SyncRunner.



8
9
10
# File 'lib/easy_sync/sync_runner.rb', line 8

def initialize()
  handle_config
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



6
7
8
# File 'lib/easy_sync/sync_runner.rb', line 6

def config
  @config
end

Instance Method Details

#runObject



12
13
14
15
16
17
# File 'lib/easy_sync/sync_runner.rb', line 12

def run
  config[:tasks].each do |c|
    c[:logging] = config[:logging]
    Rsync.new(c).sync
  end
end