Sha256: cc2315d5c2e6acde5eb0e32014c7c8fdc913d5c3729f8fb365678f3f1047bdb4

Contents?: true

Size: 335 Bytes

Versions: 1

Compression:

Stored size: 335 Bytes

Contents

# frozen_string_literal: true

class Rustic::Application
  class UnknownCommandError < Rustic::Error; end

  def initialize(config)
    @config = config
  end

  def run(argv)
    command = argv.first || "backup"
    command, env = Rustic::CommandBuilder.new(command, @config).build
    Rustic::Wrapper.new(command, env).run
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rustic-0.3.0 lib/rustic/application.rb