class Krb::Download::Base
Download
methods
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/krb/download/base.rb, line 9 def initialize super verify_setup verify_production @cmd = ::TTY::Command.new end
Public Instance Methods
process()
click to toggle source
# File lib/krb/download/base.rb, line 16 def process @cmd.run('rm -rf ./content') @cmd.run("wget -q https://#{setup.dig('production_namespace')}.ngx.host/download -O ./content.zip") @cmd.run("unzip -q ./content.zip -d ./content") @cmd.run("rm -rf ./content/lost+found content.zip") end