lib/generators/effective/ability_generator.rb in effective_developer-0.7.0 vs lib/generators/effective/ability_generator.rb in effective_developer-0.7.1
- old
+ new
@@ -22,10 +22,10 @@
def invoke_ability
say_status :invoke, :ability, :white
end
def create_ability
- unless File.exists?(resource.abilities_file)
+ unless File.exist?(resource.abilities_file)
say_status(:skipped, :ability, :yellow) and return
end
Effective::CodeWriter.new(resource.abilities_file) do |w|
if w.find { |line, depth| (depth == 2 || depth == 3) && line == ability }