Sha256: 70a72453af0e5e43717b111eeb9a2e133eebd2693af1d5f40d1865f7d173d24d
Contents?: true
Size: 431 Bytes
Versions: 14
Compression:
Stored size: 431 Bytes
Contents
class Tasks::Toolbelt::Push < Tasks::Toolbelt def call Storage.create( output_file, File.open(input_file) ) end def input_file @input_file ||= [ release_path, revision, 'tar.gz' ].compact.join(".") end def output_file path = [ release_path, options.platform ] path << revision if options.revision.present? path << 'tar.gz' @output_file ||= File.basename(path.compact.join(".")) end end
Version data entries
14 entries across 14 versions & 1 rubygems