Class: Syncoku::Local

Inherits:
Object
  • Object
show all
Includes:
CaptureBackup, Runnable
Defined in:
lib/syncoku/local.rb

Overview

Responsible for syncing to a local app

Instance Method Summary collapse

Methods included from CaptureBackup

#capture, #production_app_name, #run_on_production

Methods included from Git

#extract_app_name

Methods included from Runnable

#run_command, #test_command

Instance Method Details

#both(args) ⇒ Object



8
9
10
11
# File 'lib/syncoku/local.rb', line 8

def both(args)
  db(args)
  s3(args) if S3.config?
end

#db(args) ⇒ Object



13
14
15
# File 'lib/syncoku/local.rb', line 13

def db(args)
  Syncoku::LocalDb.new.sync(args)
end

#rebuild(args) ⇒ Object



21
22
23
# File 'lib/syncoku/local.rb', line 21

def rebuild(args)
  Syncoku::LocalDb.new.rebuild(args)
end

#s3(args) ⇒ Object



17
18
19
# File 'lib/syncoku/local.rb', line 17

def s3(args)
  Syncoku::S3.new(:development).sync(args)
end