Method: Beaver#end
- Defined in:
- lib/beaver.rb
#end ⇒ Object
Put this at the end of a file
87 88 89 90 91 92 93 94 95 96 97 |
# File 'lib/beaver.rb', line 87 def end $cache = CacheManager.new # load cache file command = ARGV[0] || @mainCommand if command == "--" # passing arguments to be processed by the builld file -> pass "--" as the command to specify the default command = @mainCommand end self.call command $cache.save # save cache file end |