Class: Skynet::Builder::Static
- Defined in:
- lib/skynet/builder/static.rb
Instance Attribute Summary
Attributes inherited from Base
#app, #branch, #branches, #destination, #key, #repository, #source, #type, #url
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Skynet::Builder::Base
Instance Method Details
#execute ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/skynet/builder/static.rb', line 7 def execute Skynet.logger.debug "Removing #{destination}/*" FileUtils.rm_rf Dir.glob(File.join destination, '*'), secure: true Skynet.logger.debug "Copying #{source} to #{destination}" FileUtils.cp_r source, destination Skynet.logger.debug "Removing #{destination}/.git" FileUtils.remove_entry_secure File.join(destination, '.git') Skynet.logger.info 'Static build finished' end |