Class: DGet::GitHubEngine
Instance Method Summary collapse
Instance Method Details
#do(project_spec, file = nil) ⇒ Object
54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/dget/github.rb', line 54 def do project_spec, file = nil user, project_name = *project_spec.split('/') gh_doc = GitHubDoc.new(user, project_name) file ||= file_for(user, project_name) puts "Building wiki: #{user}/#{project_name} => #{file}" content = build_content gh_doc File.open(file, 'w') { |f| f.puts content } end |