Sha256: c1e6130f1a1d3d1b5172c086f1e6a19e056f49d83ec19677a3a94fd9de719156
Contents?: true
Size: 815 Bytes
Versions: 1
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 Integer(stepNum) == index) 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
canzea-0.1.29 | lib/commands/apply-config.rb |