Module: Appsta::Git
- Included in:
- Appsta
- Defined in:
- lib/appsta/git.rb
Instance Method Summary collapse
-
#git_push(*remotes) ⇒ Object
This pushes to the remotes specified.
-
#git_setup(message = "initial commit by Appsta") ⇒ Object
This sets up the git repo, optionally with a custom message.
Instance Method Details
#git_push(*remotes) ⇒ Object
This pushes to the remotes specified
11 12 13 14 15 |
# File 'lib/appsta/git.rb', line 11 def git_push(*remotes) remotes.each do |remote| git(:push => "#{remote} master") end end |
#git_setup(message = "initial commit by Appsta") ⇒ Object
This sets up the git repo, optionally with a custom message
4 5 6 7 8 |
# File 'lib/appsta/git.rb', line 4 def git_setup( = "initial commit by Appsta") git(:init) git(:add => ".") git(:commit => "-a -m '#{}'") end |