Method: Xanthus::GitHub#init

Defined in:
lib/xanthus/github.rb

#init(config) ⇒ Object



50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/xanthus/github.rb', line 50

def init config
  system('git', 'clone', "https://#{@token}@github.com/#{@repo}", 'repo')
  Dir.chdir 'repo' do
    self.lfs
    FileUtils.mkdir_p @folder
    Dir.chdir @folder do
      self.xanthus_file
      self.readme_file config
      self.inputs_file config
    end
  end
end