Skip to content

Commit

Permalink
pass Integrity.directory to Builder
Browse files Browse the repository at this point in the history
  • Loading branch information
sr committed Jul 26, 2010
1 parent 3fa8a68 commit eaff9cd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/integrity/build.rb
Expand Up @@ -30,7 +30,7 @@ def run
end

def run!
Builder.build(self, Integrity.logger)
Builder.build(self, Integrity.config.directory, Integrity.logger)
end

def notify
Expand Down
17 changes: 9 additions & 8 deletions lib/integrity/builder.rb
@@ -1,14 +1,15 @@
module Integrity
class Builder
def self.build(_build, logger)
new(_build, logger).build
def self.build(_build, directory, logger)
new(_build, directory, logger).build
end

def initialize(build, logger)
@build = build
@logger = logger
@status = false
@output = ""
def initialize(build, directory, logger)
@build = build
@directory = directory
@logger = logger
@status = false
@output = ""
end

def build
Expand Down Expand Up @@ -47,7 +48,7 @@ def checkout
end

def directory
@directory ||= Integrity.config.directory.join(@build.id.to_s)
@_directory ||= @directory.join(@build.id.to_s)
end

def repo
Expand Down

0 comments on commit eaff9cd

Please sign in to comment.