Sha256: 2e59dbff7bdbb87dd3a1a170dca292f9a2e8d18f186d4e56bd268bd62c9b005f
Contents?: true
Size: 330 Bytes
Versions: 1
Compression:
Stored size: 330 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") } ) FileUtils.rm(source) unless keep end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stan-0.1.0 | lib/stan/deployer.rb |