Skip to content

Commit

Permalink
Add a rack_start method that takes a project_path argument, allowing …
Browse files Browse the repository at this point in the history
…multiple joes inside rack.
  • Loading branch information
queso authored and defunkt committed Feb 8, 2011
1 parent e6a4b72 commit efc17bf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/cijoe/server.rb
Expand Up @@ -86,6 +86,11 @@ def self.start(host, port, project_path)
CIJoe::Server.run! :host => host, :port => port
end

def self.rack_start(project_path)
set :project_path, project_path
self.new
end

def self.project_path=(project_path)
user, pass = Config.cijoe(project_path).user.to_s, Config.cijoe(project_path).pass.to_s
if user != '' && pass != ''
Expand Down

0 comments on commit efc17bf

Please sign in to comment.