Module: FightClub

Defined in:
lib/fight_club.rb,
lib/fight_club/arena.rb,
lib/fight_club/config.rb,
lib/fight_club/merger.rb,
lib/fight_club/rebaser.rb,
lib/fight_club/version.rb,
lib/fight_club/commenter.rb,
lib/fight_club/repository.rb

Defined Under Namespace

Classes: Arena, Commenter, Config, Merger, Rebaser, Repository

Constant Summary collapse

VERSION =
"0.0.6"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configObject



14
15
16
# File 'lib/fight_club.rb', line 14

def self.config
  @config ||= Config.new
end

Class Method Details

.begin(pull_request) ⇒ Object



10
11
12
# File 'lib/fight_club.rb', line 10

def self.begin(pull_request)
  Arena.new(pull_request).start
end

.configure {|config| ... } ⇒ Object

Yields:



18
19
20
# File 'lib/fight_club.rb', line 18

def self.configure
  yield(config)
end

.git_commandObject



26
27
28
# File 'lib/fight_club.rb', line 26

def self.git_command
  "git '--git-dir=#{working_dir}/#{config.repo_name}/.git' '--work-tree=#{working_dir}/#{config.repo_name}'"
end

.working_dirObject



22
23
24
# File 'lib/fight_club.rb', line 22

def self.working_dir
  "#{FightClub.config.repos_directory}/repos"
end