Sha256: f3cff20eecf5cdb2c822e90c96730ae486319ae915698adad664a732aefb9ea2

Contents?: true

Size: 292 Bytes

Versions: 1

Compression:

Stored size: 292 Bytes

Contents

require "English"

module DailyWeeklyMonthly
  class Downloader
    def initialize backup_command
      @backup_command = backup_command
    end

    def call
      result = `#{@backup_command}`
      raise "Failed to download backup" unless $CHILD_STATUS == 0
      result
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
daily_weekly_monthly-0.0.2 lib/daily_weekly_monthly/downloader.rb