Method: F2h::InitialFiles#make_files

Defined in:
lib/initial_files.rb

#make_filesObject



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/initial_files.rb', line 13

def make_files
  make_dirs
  @types.each do |t|
    @ext.each do |k,value|
      if value
        File.open("#{k}/"+@get_current_foldername+"_#{t}.#{k}", 'w+') do |file|
          k.eql?("js") ? t.eql?("box") ? to_write = @bp.box_js_boilerplate : to_write = @bp.banner_js_boilerplate : t.eql?("box") ? to_write = @bp.box_css_boilerplate : to_write = @bp.banner_css_boilerplate
            # file.write(send("#{@bp}.#{t}_#{k}_boilerplate"))
          file.write(to_write)
        end
      else
        File.open(@get_current_foldername+"_#{t}.#{k}", 'w+') do |file|
          to_write = @bp.html_boilerplate(@get_current_foldername, t)
          file.write(to_write)
        end
      end
    end
  end
  exec('curl -o js/TweenMax.min.js http://cdnjs.cloudflare.com/ajax/libs/gsap/1.17.0/TweenMax.min.js;curl -o js/jquery.min.js https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0-alpha1/jquery.min.js')
end