Module: GithubSnapshot

Defined in:
lib/github_snapshot.rb,
lib/github_snapshot/version.rb,
lib/github_snapshot/snapshot.rb,
lib/github_snapshot/repository.rb,
lib/github_snapshot/organization.rb

Defined Under Namespace

Classes: Organization, Repository, Snapshot

Constant Summary collapse

VERSION =
"0.1.4"
Error =
Class.new(RuntimeError)
@@logger =
Logger.new(STDOUT)
@@git_clone_cmd =
"git clone --quiet --mirror"
@@time_now =
Time.now.getutc.strftime("%Y%m%d%H%M")

Class Method Summary collapse

Class Method Details

.exec(cmd) ⇒ Object



29
30
31
# File 'lib/github_snapshot/snapshot.rb', line 29

def self.exec(cmd)
  Utilities.exec cmd, @@logger
end

.git_clone_cmdObject



16
# File 'lib/github_snapshot/snapshot.rb', line 16

def self.git_clone_cmd;     @@git_clone_cmd;      end

.git_clone_timeoutObject



19
# File 'lib/github_snapshot/snapshot.rb', line 19

def self.git_clone_timeout; @@git_clone_timeout;  end

.git_clone_timeout=(git_clone_timeout) ⇒ Object



25
26
27
# File 'lib/github_snapshot/snapshot.rb', line 25

def self.git_clone_timeout=(git_clone_timeout)
  @@git_clone_timeout = git_clone_timeout
end

.loggerObject



15
# File 'lib/github_snapshot/snapshot.rb', line 15

def self.logger;            @@logger;             end

.releases_to_keepObject



18
# File 'lib/github_snapshot/snapshot.rb', line 18

def self.releases_to_keep;  @@releases_to_keep;   end

.releases_to_keep=(releases_to_keep) ⇒ Object



21
22
23
# File 'lib/github_snapshot/snapshot.rb', line 21

def self.releases_to_keep=(releases_to_keep)
  @@releases_to_keep = releases_to_keep
end

.time_nowObject



17
# File 'lib/github_snapshot/snapshot.rb', line 17

def self.time_now;          @@time_now;           end