Sha256: 8caf076766e1e590396cd05930d59159876b734a1ac8dd98be9ec06143ca2d43

Contents?: true

Size: 462 Bytes

Versions: 3

Compression:

Stored size: 462 Bytes

Contents

#!/usr/bin/env ruby

require 'riserva'
require 'riserva/command_line'

class RiservaExecutable
  def initialize
    ENV['RISERVA_CONFIG'] ||= Choice[:config]
  end

  def call
    case Choice[:perform]
    when 'backup' then
      Riserva::Commands::Backup.new.call
    end
  end
end

riserva = RiservaExecutable.new

begin
  riserva.call
rescue StandardError => error
  Riserva.logger.fatal(error.message)
  Riserva.logger.debug(error.backtrace.join("\n"))
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
riserva-0.1.4 bin/riserva
riserva-0.1.3 bin/riserva
riserva-0.1.2 bin/riserva