Class: Fusion::Quick

Inherits:
Basic
  • Object
show all
Defined in:
lib/quick.rb

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



4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/quick.rb', line 4

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