class Repository

Constants

DROPBOX_GIT_CMD

Public Class Methods

new(config) click to toggle source
# File lib/git/dropbox/repository.rb, line 5
def initialize(config)
  @config = config
end

Public Instance Methods

sync(repo, add_repo_to_list=true) click to toggle source
# File lib/git/dropbox/repository.rb, line 9
def sync(repo, add_repo_to_list=true)
  system "cd #{repo}; #{DROPBOX_GIT_CMD}"
  if add_repo_to_list
    @config['repositories'] ||= []
    @config['repositories'] << repo
    @config['repositories'].uniq!
    @config.save
  end
end