Class: Fusion::Quick
Instance Method Summary collapse
Methods inherited from Basic
#gather_files, #get_output_file, #get_remote_file, #initialize, #run
Constructor Details
This class inherits a constructor from Fusion::Basic
Instance Method Details
#bundle(config) ⇒ Object
135 136 137 138 139 140 141 142 143 144 145 146 147 148 |
# File 'lib/fusion.rb', line 135 def bundle(config) js = [] input_files = gather_files(config) input_files.each do |input_file| js << File.open(input_file, "r").read end js = js.join("\n") File.open(get_output_file(config), "w") { |f| f << js } js end |