Method: Jgit::Project#exe

Defined in:
lib/jgit.rb

#exe(command) ⇒ Object



153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
# File 'lib/jgit.rb', line 153

def exe(command)

	list = list(false, get_group)

	jexit "no project, use 'jgit add' to add project first" if list.empty?

	list.each do |name, path|
		if !options[:project].nil? && options[:project] != name
			next
		end
		puts ""
		puts " - Task:#{bold(name)}"
		Dir.chdir(path)
		system command
	end
end