Sha256: cc2d5d3a17afe144c5bf390af708ade988affc36fca63399ea5cf2404fc9f912
Contents?: true
Size: 360 Bytes
Versions: 3
Compression:
Stored size: 360 Bytes
Contents
require 'typhoeus' module Stan class Deployer def self.deploy(source, name, keep: false) url = ENV.fetch('STAN_SERVER') Typhoeus.post( "#{url}/upload", body: { name: name, file: File.open(source,"r") }, followlocation: true ) FileUtils.rm(source) unless keep end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
stan-0.2.2 | lib/stan/deployer.rb |
stan-0.2.1 | lib/stan/deployer.rb |
stan-0.2.0 | lib/stan/deployer.rb |