class Krb::Import::Base

Import methods

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/krb/import/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/import/base.rb, line 16
def process
  @cmd.run('rm -rf ./content')
  @cmd.run("wget https://#{setup.dig('production_namespace')}.ngx.host/download -O ./content.zip")
  @cmd.run("unzip ./content.zip -d ./content")
  @cmd.run("rm -rf ./content/lost+found content.zip")
end