schultyy/Niman

View on GitHub
lib/niman/filehandler.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Niman
  class FileHandler
    attr_reader :shell

    def initialize(shell)
      @shell = shell
    end

    def run(files)
      Array(files).each do |file|
        shell.create_file(file.path, file.content)
      end
    end
  end
end