Sha256: 7ccf3d017c3e0258d6ef33e019887f19621fe400aa30af1bd31b39a6acd4ee1d
Contents?: true
Size: 388 Bytes
Versions: 3
Compression:
Stored size: 388 Bytes
Contents
require_relative "repository" module GithubSnapshot class Organization attr_reader :name, :repos def initialize(name, repos) @name = name @repos = repos end def backup repos.to_a.each do |repo| GithubSnapshot.exec "mkdir -p #{name}" repository = Repository.new repo, self repository.backup end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
github_snapshot-0.1.4 | lib/github_snapshot/organization.rb |
github_snapshot-0.1.3 | lib/github_snapshot/organization.rb |
github_snapshot-0.1.2 | lib/github_snapshot/organization.rb |