Sha256: 57e721855808ae47bfe35c7bc062155e4229a20ded514198d01444fedf310ceb
Contents?: true
Size: 472 Bytes
Versions: 5
Compression:
Stored size: 472 Bytes
Contents
class Sequence < Screwcap::Base def initialize(opts = {}) super self.__options = opts self.__name = opts[:name] self.__deployment_task_names = opts[:deployment_task_names] self.__task_names = opts[:tasks] validate end private def validate self.__task_names.each do |tn| raise(Screwcap::ConfigurationError, "Could not find task #{tn} in the deployment recipe.") unless self.__deployment_task_names.include?(tn) end end end
Version data entries
5 entries across 5 versions & 1 rubygems