Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Print input.tgz size #21

Closed
wants to merge 1 commit into from

2 participants

@Skomski

Useful to estimate the upload duration

@ddollar

Going to roll this in with a bigger change

@ddollar ddollar closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 3, 2012
  1. @Skomski

    Print input.tgz size

    Skomski authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/vulcan/cli.rb
View
1  lib/vulcan/cli.rb
@@ -42,6 +42,7 @@ def build
Dir.mktmpdir do |dir|
action "Packaging local directory" do
%x{ cd #{source} && tar czvf #{dir}/input.tgz . 2>&1 }
+ print " (#{(File.size("#{dir}/input.tgz") / 1024 / 1024} MB) "
end
File.open("#{dir}/input.tgz", "r") do |input|
Something went wrong with that request. Please try again.