instance method
git
Ruby on Rails 3.0.20
Since v3.0.20Signature
git(command={})
Run a command in git.
Examples
git :init git :add => "this.file that.rb" git :add => "onefile.rb", :rm => "badfile.cxx"
Parameters
-
commandopt = {}
Source
# File railties/lib/rails/generators/actions.rb, line 132
def git(command={})
if command.is_a?(Symbol)
run "git #{command}"
else
command.each do |command, options|
run "git #{command} #{options}"
end
end
end
Defined in railties/lib/rails/generators/actions.rb line 132
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Generators::Actions