Class: Shanty::BundlerMutator

Inherits:
Mutator
  • Object
show all
Defined in:
lib/shanty/mutators/bundler.rb

Overview

Bundler mutator

Instance Attribute Summary

Attributes inherited from Mutator

#env, #graph

Instance Method Summary collapse

Methods inherited from Mutator

#apply_mutations, inherited, #initialize

Constructor Details

This class inherits a constructor from Shanty::Mutator

Instance Method Details

#mutateObject



7
8
9
10
11
# File 'lib/shanty/mutators/bundler.rb', line 7

def mutate
  graph.each do |project|
    BundlerPlugin.add_to_project(project) if File.exist?(File.join(project.path, 'Gemfile'))
  end
end