Method: Docman::Application#init

Defined in:
lib/application.rb

#init(name, repo, options) ⇒ Object



48
49
50
51
52
53
# File 'lib/application.rb', line 48

def init(name, repo, options)
  branch = options['branch'] ? options['branch'] : 'master'
  `mkdir #{name} && cd #{name} && git clone -b #{branch} --single-branch --depth 1 #{repo} config`
  #Dir.chdir File.join(name, 'config')
  #`git checkout #{branch} & git branch -u origin #{branch}`
end