Class: Hawk::Hawkifier

Inherits:
Object
  • Object
show all
Defined in:
lib/hawk/hawkifier.rb

Instance Method Summary collapse

Constructor Details

#initialize(dir) ⇒ Hawkifier

Returns a new instance of Hawkifier.



5
6
7
# File 'lib/hawk/hawkifier.rb', line 5

def initialize(dir)
  @dir = dir
end

Instance Method Details

#hawkifyObject



9
10
11
12
13
14
# File 'lib/hawk/hawkifier.rb', line 9

def hawkify
  files.each do |name, contents|
    write_file_if_not_exist(name, contents)
  end
  puts "hawkify done"
end