Class: Infect::Runner
- Inherits:
-
Object
- Object
- Infect::Runner
- Defined in:
- lib/infect/runner.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.call(*args) ⇒ Object
8 9 10 |
# File 'lib/infect/runner.rb', line 8 def self.call(*args) self.new.call(args) end |
Instance Method Details
#call(*args) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/infect/runner.rb', line 12 def call(*args) force = args.include? "-f" Command::Prereqs.new().call commands = get_packages_from_vimrc commands.compact.each(&:call) locations = commands.map(&:location) Cleanup.new(locations, :force => force).call end |