Class: Verify
- Inherits:
-
Array
- Object
- Array
- Verify
- Defined in:
- lib/verify.rb
Instance Method Summary collapse
- #add(command) ⇒ Object
-
#initialize ⇒ Verify
constructor
A new instance of Verify.
- #update ⇒ Object
Constructor Details
#initialize ⇒ Verify
Returns a new instance of Verify.
5 6 7 |
# File 'lib/verify.rb', line 5 def initialize update end |
Instance Method Details
#add(command) ⇒ Object
26 27 28 |
# File 'lib/verify.rb', line 26 def add command self << command if(!include?(command)) end |
#update ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/verify.rb', line 9 def update puts "Verify.update" if(defined?(DEV_TASKS)) if(Environment.scm=='svn') latestRev=Environment.svn_latest_revision uri=DEV_TASKS[:scm_origin]+"@"+latestRev dep_dir="#{Environment.dev_root}/dep/#{DEV_TASKS[:relative_directory]}@#{latestRev}" if(!File.exists?(dep_dir)) add "svn export #{uri} #{dep_dir}@" add "<%Environment.rake('#{dep_dir}','setup',true)%>" add "<%Environment.rake('#{dep_dir}','build',true)%>" add "<%DEV_TASKS[:commands][:publish].update%>" end end end end |