lib/planner.rb in tdi-0.1.6 vs lib/planner.rb in tdi-0.1.7

- old
+ new

@@ -1,7 +1,7 @@ # -# Copyright (C) 2013-2014 Globo.com +# Copyright (C) 2013-2015 Globo.com # # This file is part of TDI. # TDI is free software: you can redistribute it and/or modify @@ -90,11 +90,11 @@ puts 'Compiling test plan...'.cyan if opts[:verbose] > 1 compiled_plan = {} # Role. - # Ex: {"admin": {"desc": "...", "acl": {"domain1": {"port": 80}...}...}...} + # Ex: {"app": {"desc": "...", "acl": {"domain1": {"port": 80}...}...}...} plan.select { |key, val| val.is_a?(Hash) }.each_with_index do |(role_name, role_content), index| if opts[:verbose] > 2 puts '=' * 60 @@ -167,11 +167,11 @@ puts 'Inheriting test plan...'.cyan if opts[:verbose] > 1 inherited_plan = {} # Role may inherit from role. - # Ex: {"admin": {"desc": "...", "inherits": "other_role", "acl": {"domain1": {"port": 80}...}...}...} + # Ex: {"app": {"desc": "...", "inherits": "other_role", "acl": {"domain1": {"port": 80}...}...}...} plan.select { |key, val| val.is_a?(Hash) }.each_with_index do |(role_name, role_content), index| if opts[:verbose] > 2 puts '=' * 60 @@ -241,13 +241,15 @@ puts 'Filtering test plan...'.cyan if opts[:verbose] > 1 filtered_plan = {} flag_err = false - # Ex: tdi -p admin - # Ex: tdi -p admin::acl - # Ex: tdi --plan fe - # Ex: tdi --plan admin::acl,solr,be + # Ex: -p admin + # Ex: -p admin::acl + # Ex: --plan app + # Ex: --plan app::acl + # Ex: --plan fe + # Ex: --plan admin::acl,app,fe if opts.plan? # Do filter. puts 'Filtering following test plan from input file:'.cyan if opts[:verbose] > 0 opts[:plan].each do |plan_name| puts " - #{plan_name}".cyan if opts[:verbose] > 0