Module: Closync

Defined in:
lib/closync.rb,
lib/closync/sync.rb,
lib/closync/config.rb,
lib/closync/storage.rb,
lib/closync/version.rb

Defined Under Namespace

Classes: Config, Storage, Sync

Constant Summary collapse

VERSION =
'0.1.0'

Class Method Summary collapse

Class Method Details

.configObject



12
13
14
15
# File 'lib/closync.rb', line 12

def config
  @config ||= Config.new
  @config
end

.config=(data) ⇒ Object



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

def config=(data)
  @config = data
end

.configure {|@config| ... } ⇒ Object

Yields:



17
18
19
20
# File 'lib/closync.rb', line 17

def configure(&proc)
  @config ||= Config.new
  yield @config
end

.push!Object



22
23
24
# File 'lib/closync.rb', line 22

def push!
  Sync.new(config).push!
end