Method: Codger::CLI#repeat

Defined in:
lib/codger/cli.rb

#repeat(*tags) ⇒ Object



80
81
82
83
84
85
86
87
88
89
90
# File 'lib/codger/cli.rb', line 80

def repeat(*tags)
  Manager.default.settings[:runs].each do |info|
    if tags.empty? or (tags & info[:tags]).any?
      puts "Running #{info[:generator]} [#{info[:tags].join(' ')}]"
      puts Generator.format_params(info[:params])
      puts
      generator = Manager.default.generator(info[:generator])
      generator.run Dir.pwd, info[:params]
    end
  end
end