Sha256: 4cad06c2ef96ec51a92c8621e49958c8f11d825512d0f940307e3395aa337979
Contents?: true
Size: 897 Bytes
Versions: 1
Compression:
Stored size: 897 Bytes
Contents
module YSI class YesItShipped < Assertion def display_name "pushed to yes-it-shipped" end def check begin json = RestClient.get("https://yes-it-shipped.herokuapp.com/releases/#{engine.project_name}/#{engine.version}") return "#{engine.project_name}-#{engine.version}" rescue RestClient::ResourceNotFound return nil end end def assert(dry_run: false) if !dry_run begin RestClient.post("https://yes-it-shipped.herokuapp.com/releases", project: engine.project_name, version: engine.version, release_date_time: Time.now, project_url: engine.project_url, release_url: engine.release_url, ysi_config_url: engine.config_url) rescue RestClient::Exception return nil end end "#{engine.project_name}-#{engine.version}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yes_ship_it-0.0.4 | assertions/yes_it_shipped.rb |