lib/ib/generator.rb in ib-0.4.0 vs lib/ib/generator.rb in ib-0.4.1

- old
+ new

@@ -4,11 +4,11 @@ class IB::Generator def initialize motion_template_type # NOTE: motion_template_type equal to Motion::Project::App.template # but, this class use its value for judging build platform. - @build_platform = motion_template_type + @build_platform = motion_template_type end def absolute_template_path path File.expand_path(File.join(File.dirname(__FILE__), path)) end @@ -18,10 +18,10 @@ template.render(RenderingHelper.new(@build_platform, files)) end def write files, dest files = IB::Parser.new.find_all(files) - + FileUtils.mkpath dest File.open("#{dest}/Stubs.h", 'w') do |f| f.write render_stub_file('generator/templates/Stubs.h.erb', files) end