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

Version Path
quandl-0.4.4 tasks/toolbelt/push.rb
quandl-0.4.3 tasks/toolbelt/push.rb
quandl-0.4.2 tasks/toolbelt/push.rb
quandl-0.4.1 tasks/toolbelt/push.rb
quandl-0.4.0 tasks/toolbelt/push.rb
quandl-0.3.7 tasks/toolbelt/push.rb
quandl-0.3.6 tasks/toolbelt/push.rb
quandl-0.3.4 tasks/toolbelt/push.rb
quandl-0.3.3 tasks/toolbelt/push.rb
quandl-0.3.0 tasks/toolbelt/push.rb
quandl-0.2.27 tasks/toolbelt/push.rb
quandl-0.2.26 tasks/toolbelt/push.rb
quandl-0.2.25 tasks/toolbelt/push.rb
quandl-0.2.24 tasks/toolbelt/push.rb