Class: RegressyCommon::SnapStorage

Inherits:
Object
  • Object
show all
Defined in:
lib/regressy_common/snap_storage.rb

Instance Method Summary collapse

Instance Method Details

#store_file(file, tag) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/regressy_common/snap_storage.rb', line 5

def store_file(file, tag)
  # if not define api_base, skip post and unlink for development
  if api_base
    post_file(file, tag) if api_base
    File.unlink(file.path)
  end
end