Method: Kaigara::Package#run!
- Defined in:
- app/models/sysops/package.rb
#run!(operations) ⇒ Object
Execute operations in the operations directory one by one
52 53 54 55 56 57 58 |
# File 'app/models/sysops/package.rb', line 52 def run!(operations) Dir[File.join(@operations_dir, '*.rb')].sort.each do |x| if operations.empty? or operations.find { |op| x.include?(op) } execute_operation!(x) end end end |