six-arma-builder 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/six/arma/builder-app.rb +9 -6
- data/lib/six/arma/builder.rb +1 -1
- data/lib/six/arma/builder/mod.rb +11 -5
- metadata +1 -1
data/Rakefile
CHANGED
data/lib/six/arma/builder-app.rb
CHANGED
@@ -13,15 +13,18 @@ module Six
|
|
13
13
|
# TODO: First reset the package repositories ?
|
14
14
|
mod.process_diffs
|
15
15
|
mod.process_files
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
16
|
+
mod.write_changelog
|
17
|
+
unless TEST
|
18
|
+
begin
|
19
|
+
mod.commit_destination # TODO: ONLY WHEN FINALIZED
|
20
|
+
# TODO: Only save when finalized
|
21
|
+
rescue
|
22
|
+
puts "Failed commit/push"
|
23
|
+
end
|
24
|
+
save # only save if changes were found ??
|
20
25
|
end
|
21
26
|
end
|
22
27
|
end
|
23
|
-
# TODO: Only save when finalized
|
24
|
-
save unless TEST
|
25
28
|
end
|
26
29
|
end
|
27
30
|
end
|
data/lib/six/arma/builder.rb
CHANGED
data/lib/six/arma/builder/mod.rb
CHANGED
@@ -330,12 +330,10 @@ module Six
|
|
330
330
|
end
|
331
331
|
end
|
332
332
|
|
333
|
-
def
|
334
|
-
# Combine the changelogs and everything
|
335
|
-
# Commit and optional Push?
|
336
|
-
puts
|
337
|
-
#@destination_changed = true
|
333
|
+
def write_changelog
|
338
334
|
if @destination_changed
|
335
|
+
puts
|
336
|
+
log.info "Writing Changelog..."
|
339
337
|
msgs = ["h2. #{Time.now}\n\nBuild #{@build}\nUpdated to source:@#{@config[:revision][:current]}"]
|
340
338
|
@config[:paths].each_with_index do |path,index|
|
341
339
|
stat = @stats[index]
|
@@ -367,7 +365,15 @@ module Six
|
|
367
365
|
file.puts "h2. #{@config[:name].upcase}\n\n"
|
368
366
|
file.puts msgs
|
369
367
|
end
|
368
|
+
end
|
369
|
+
end
|
370
370
|
|
371
|
+
def commit_destination
|
372
|
+
# Combine the changelogs and everything
|
373
|
+
# Commit and optional Push?
|
374
|
+
#@destination_changed = true
|
375
|
+
if @destination_changed
|
376
|
+
puts
|
371
377
|
log.info "Committing, Repacking and Pushing..."
|
372
378
|
|
373
379
|
#path = File.join(BASE_PATH, 'test')
|