Sha256: 3ad20e0cdde3830de403e71f50b0f951bd27dac2f1d90b1996c0f58b745acbe3

Contents?: true

Size: 381 Bytes

Versions: 1

Compression:

Stored size: 381 Bytes

Contents

require_relative "repository"

module GithubSnapshot

  class Organization

    attr_reader :name, :folder, :repos

    def initialize(name, folder, repos)
      @name   = name
      @folder = folder
      @repos  = repos
    end

    def backup
      repos.to_a.each do |repo|
        repository = Repository.new repo, self
        repository.backup
      end
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
github_snapshot-0.1.0 lib/github_snapshot/organization.rb