Module: Build
- Defined in:
- lib/monkey_patch.rb
Class Method Summary collapse
Class Method Details
.clean ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/monkey_patch.rb', line 17 def self.clean pwd = Dir.pwd project_name = File.basename(pwd) full = File.(pwd) FileUtils.rm_rf "#{full}/common/gems/installed/" FileUtils.mkdir "#{full}/common/gems/installed/" end |
.package ⇒ Object
11 12 13 14 15 |
# File 'lib/monkey_patch.rb', line 11 def self.package pwd = Dir.pwd project_name = File.basename(pwd) File.open("#{project_name}.tar", 'wb') { |tar| Archive::Tar::Minitar.pack("#{pwd}", tar) } end |