Class: Bootcamp::Armory

Inherits:
Object
  • Object
show all
Defined in:
lib/bootcamp/armory.rb

Overview

The Armory is where the repo will be held

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeArmory

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

#gitObject

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(message = "Simple Commit")
  @git.add('.')
  @git.commit(message)
end

#depositObject



21
22
23
# File 'lib/bootcamp/armory.rb', line 21

def deposit
  # pushes the files up
end