Skip to content

nvieirafelipe/rough

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rough

To load Rough with pry

$:.push File.expand_path("../lib", __FILE__)

require 'rough'

Creating a new repo and adding README file

repo = Rough::Repository.create("public/uploads/sites/site_id_or_name")

repo.create_file('README.md', '# Rough')

author = { email: 'testuser@github.com', name: 'Test Author'}

repo.commit(author, 'Start the first rought site')

Fetching a existing repo and overriding the README file

repo = Rough::Repository.fetch("public/uploads/sites/site_id_or_name")

repo.create_file('README.md', "Rough\n===")

author = { email: 'testuser@github.com', name: 'Test Author'}

repo.commit(author, 'Update README of site')

About

Rough

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages