Class: Rant::Generators::SignedDirectory

Inherits:
SignedFile show all
Defined in:
lib/rant/import/signedfile.rb

Instance Attribute Summary

Attributes inherited from SignedFile

#receiver

Instance Method Summary collapse

Methods inherited from SignedFile

#<<, #each_target, #enhance, #fail?, #file_target?, #has_actions?, #initialize, #invoke, #invoked?, #prerequisites, rant_gen, #source, #timestamp

Methods included from Node

#inspect

Constructor Details

This class inherits a constructor from Rant::Generators::SignedFile

Instance Method Details

#respond_to?(meth) ⇒ Boolean

Returns:

  • (Boolean)

206
207
208
209
210
211
212
# File 'lib/rant/import/signedfile.rb', line 206

def respond_to?(meth)
    if meth == :signature
        @block
    else
        super
    end
end

#signatureObject


213
214
215
216
217
218
219
# File 'lib/rant/import/signedfile.rb', line 213

def signature
    goto_task_home
    sigs = @rac.var._get("__signature__")
    md = @rac.var._get("__metadata__")
    key = "prerequisites_sig_#{sigs.name}"
    md.path_fetch(key, @name)
end