public
Description: Dependency Resolution Framework
Homepage: http://warningshot.lighthouseapp.com
Clone URL: git://github.com/coryodaniel/warningshot.git
coryodaniel (author)
Thu Feb 26 17:40:45 -0800 2009
commit  57c993689114a1ee04bdf558ec9f5607851e2ccf
tree    f9c34cc23f84172f67fbaf16c21fdb4d508566f3
parent  4bf02c372017d7458ed618f11a7c82c70c64e609
warningshot / resolver_template.txt
100755 38 lines (25 sloc) 0.752 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# For great details on writing a resolver see:
# http://github.com/coryodaniel/warningshot/wikis/an-example-resolver
 
# attr_accessors: dependencies
# attr_readers: config
 
 
class WarningShot::RESOLVER_NAME
  include WarningShot::Resolver
  order 100
  #disable!
 
  branch :BRANCH_NAME #or :branch_name, :branch_name2, :branch_name3
  description 'DESCRIPTION'
       
  typecast do |yaml|
    #Default way tot typecast yaml to an object
  end
  
  #This will be how strings are typecast
  #typecast(String){|yaml| }
  
  #This will be how hashes are typecase, etc
  #typecast(Hash){|yaml| }
  
  register :test do |dep|
    
  end
  
  register :resolution do |dep|
    
  end
  
  def initialize(config,branch_name,*params)
    super
    
  end
end