class Niman::FileHandler

Attributes

shell[R]

Public Class Methods

new(shell) click to toggle source
# File lib/niman/filehandler.rb, line 5
def initialize(shell)
  @shell = shell
end

Public Instance Methods

run(files) click to toggle source
# File lib/niman/filehandler.rb, line 9
def run(files)
  Array(files).each do |file|
    shell.create_file(file.path, file.content)
  end
end