Method: Checkup::CLI::Utility#perform
- Defined in:
- lib/checkup/cli/utility.rb
#perform ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/checkup/cli/utility.rb', line 9 def perform root_path = [:root_path] if root_path == "" root_path = Checkup::Config::DEFAULT_ROOT_PATH end load root_path triggers = [:trigger].split(",") triggers.map!(&:strip).map! {|t| t.include?('*') ? Model.find_matching(t) : t }.flatten! triggers.each do |trigger| model = Model.find(trigger) model.perform! Logger.clear! end end |