4bdf703ab2
This release upgrades Instiki to Rails 2.3.4, which patches two security holes in Rails. See http://weblog.rubyonrails.org/2009/9/4/ruby-on-rails-2-3-4 There are also some new features, and the usual boatload of bugfixes. See the CHANGELOG for details.
18 lines
318 B
Ruby
18 lines
318 B
Ruby
STDOUT.sync = true
|
|
|
|
module Rails
|
|
class Git < Scm
|
|
def self.clone(repos, branch=nil)
|
|
system "git clone #{repos}"
|
|
|
|
if branch
|
|
system "cd #{repos.split('/').last}/"
|
|
system "git checkout #{branch}"
|
|
end
|
|
end
|
|
|
|
def self.run(command)
|
|
system "git #{command}"
|
|
end
|
|
end
|
|
end |