instiki/vendor/rails/railties/lib/rails_generator/generators/applications/app/scm/git.rb
Jacques Distler 4bdf703ab2 Instiki 0.17.2: Security Release
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.
2009-09-05 02:01:46 -05:00

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