lib/codily/engine.rb in codily-0.1.0.beta vs lib/codily/engine.rb in codily-0.2.0
- old
+ new
@@ -50,9 +50,20 @@
end
act_any = false
act = false
+ present.service_versions.each do |id, version|
+ if !version[:dev]
+ puts "CLONE VERSION: #{version[:name]}.#{version[:active]}"
+ if !dry_run
+ version[:dev] = fastly.get_version(id, version[:active]).clone.number
+ end
+ end
+ end
+
+ puts
+
creations.each do |new_element|
act_any = act = true
puts "CREATE: #{new_element.inspect}"
hash = new_element.as_hash