Module: Egads::LocalHelpers

Included in:
Build, Check
Defined in:
lib/egads/local_helpers.rb

Overview

Some helper methods for all local commands

Instance Method Summary collapse

Instance Method Details

#shaObject



4
5
6
# File 'lib/egads/local_helpers.rb', line 4

def sha
  @sha ||= run_with_code("git rev-parse --verify #{rev}").strip
end

#short_shaObject



8
9
10
# File 'lib/egads/local_helpers.rb', line 8

def short_sha
  sha[0,7]
end

#tarballObject



12
13
14
# File 'lib/egads/local_helpers.rb', line 12

def tarball
  @tarball ||= S3Tarball.new(sha, seed: options[:seed])
end