Class: Bootcamp::Armory
- Inherits:
-
Object
- Object
- Bootcamp::Armory
- Defined in:
- lib/bootcamp/armory.rb
Overview
The Armory is where the repo will be held
Instance Attribute Summary collapse
-
#git ⇒ Object
Returns the value of attribute git.
Instance Method Summary collapse
- #checkin(message = "Simple Commit") ⇒ Object
- #deposit ⇒ Object
-
#initialize ⇒ Armory
constructor
A new instance of Armory.
Constructor Details
#initialize ⇒ Armory
Returns a new instance of Armory.
10 11 12 13 14 |
# File 'lib/bootcamp/armory.rb', line 10 def initialize @git = Git.init checkin("First Commit") # need to add the repo origin, and branch. end |
Instance Attribute Details
#git ⇒ Object
Returns the value of attribute git.
8 9 10 |
# File 'lib/bootcamp/armory.rb', line 8 def git @git end |
Instance Method Details
#checkin(message = "Simple Commit") ⇒ Object
16 17 18 19 |
# File 'lib/bootcamp/armory.rb', line 16 def checkin( = "Simple Commit") @git.add('.') @git.commit() end |
#deposit ⇒ Object
21 22 23 |
# File 'lib/bootcamp/armory.rb', line 21 def deposit # pushes the files up end |