Sha256: 3ed61e7e36e0e2de8878e532cc6a328aa377695cdaf7d0f97749807a3e702cd6
Contents?: true
Size: 815 Bytes
Versions: 22
Compression:
Stored size: 815 Bytes
Contents
require 'json' require 'plan-step-class' class ApplyConfig def do (gitRoot, test = false, stepNum = nil, task = nil) ps = PlanStep.new # Read the configuration file and make calls out to run puts "Processing #{gitRoot}/configure.json" steps = JSON.parse(File.read("#{gitRoot}/configure.json")) index = 1 steps["steps"].each { | step | role = step['role'] solution = step['solution'] puts "#{stepNum} and #{index}" if (stepNum == nil or index >= Integer(stepNum)) puts "[#{index}] Configure for #{role} and #{solution}" ps.runPhaseConfigure role, solution, test, (task == nil ? 1:task) task = 1 end index = index + 1 } end end
Version data entries
22 entries across 22 versions & 1 rubygems