Class: Jscompiler::Commands::Uglifier
- Defined in:
- lib/jscompiler/commands/uglifier.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#comments_regexp, compile_group, #debug_file_path, #execute, #generate_temp_file, #group, #initialize, #output_file_path, #prepare_arguments, #prepare_command, #sanitize, #save_or_delete_temp_file, #temp_file_path
Constructor Details
This class inherits a constructor from Jscompiler::Commands::Base
Instance Method Details
#run ⇒ Object
31 32 33 34 35 36 37 38 39 |
# File 'lib/jscompiler/commands/uglifier.rb', line 31 def run generate_temp_file File.open(output_file_path, 'w') do |file| file.write(::Uglifier.compile(File.read(temp_file_path))) end save_or_delete_temp_file end |