Skip to content

Commit

Permalink
don't save things to img_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
andymeneely committed Nov 23, 2020
1 parent 754636d commit 02d02ac
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions lib/squib/dsl/save_png.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,16 @@ def self.accepted_params

def run(opts)
warn_if_unexpected opts
Dir.chdir(deck.img_dir) do
range = Args.extract_range opts, deck
batch = Args.extract_save_batch opts, deck
@bar.start("Saving PNGs to #{batch.summary}", deck.size) do |bar|
range.map do |i|
deck.cards[i].save_png(batch[i])
bar.increment
end

range = Args.extract_range opts, deck
batch = Args.extract_save_batch opts, deck
@bar.start("Saving PNGs to #{batch.summary}", deck.size) do |bar|
range.map do |i|
deck.cards[i].save_png(batch[i])
bar.increment
end
end

end
end

end
end

0 comments on commit 02d02ac

Please sign in to comment.