Sha256: 52f5ee57c8dc67603b65e86754e1df53af93f5a5189cc58fa89bdea5edeb08b2

Contents?: true

Size: 435 Bytes

Versions: 2

Compression:

Stored size: 435 Bytes

Contents

module Capitate
  
  module CapExt
    
    module TaskDefinition
      
      attr_accessor :arguments
      
      def setup_defaults
        return if arguments.blank?
        
        arguments.each do |arg|
          namespace.fetch_or_default(arg[:name], arg[:default]) if arg.has_key?(:default)
          namespace.fetch_or_set(arg[:name], arg[:set]) if arg.has_key?(:set)
        end 
      end
      
    end
    
  end
  
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
calas-capitate-0.3.6 lib/capitate/cap_ext/task_definition.rb
capitate-0.3.6 lib/capitate/cap_ext/task_definition.rb