Class: JustizSync::Cli

Inherits:
Thor
  • Object
show all
Defined in:
lib/justiz_sync/cli.rb

Instance Method Summary collapse

Instance Method Details

#syncObject



13
14
15
16
17
18
19
20
# File 'lib/justiz_sync/cli.rb', line 13

def sync
  transfer = Transfer.new(options)
  if (state = options['state'])
    transfer.sync_state(state)
  else
    transfer.sync
  end
end