Sha256: bd3b5fc71101120be68ffe2bdb7a185fb8b51842997cc7c855a2a0e0fc1f805d
Contents?: true
Size: 597 Bytes
Versions: 2
Compression:
Stored size: 597 Bytes
Contents
module Vx module Builder class Task attr_reader :name, :src, :sha, :deploy_key, :branch, :pull_request_id def initialize(name, src, sha, options = {}) @name = name @src = src @sha = sha @deploy_key = options[:deploy_key] @branch = options[:branch] @pull_request_id = options[:pull_request_id] validate! end private def validate! (name && src && sha && deploy_key && branch) or raise(MissingKeys) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vx-builder-0.0.3 | lib/vx/builder/task.rb |
vx-builder-0.0.2 | lib/vx/builder/task.rb |