Class: Pull

Inherits:
Array
  • Object
show all
Defined in:
lib/pull.rb

Instance Method Summary collapse

Constructor Details

#initialize ⇒ Pull

Returns a new instance of Pull.



5
6
7
# File 'lib/pull.rb', line 5

def initialize
  update
end

Instance Method Details

#add(command) ⇒ Object



15
16
17
# File 'lib/pull.rb', line 15

def add command
  self << command if(!include?(command))
end

#update ⇒ Object



9
10
11
12
13
# File 'lib/pull.rb', line 9

def update
  if(Environment.scm=='git')
 self.add "<%`git pull`%>"
	end
end