Sha256: b74f4a1fdf188ba08968a0a67e61997442b3a81341bb93cdeda0762687d0ebf0
Contents?: true
Size: 315 Bytes
Versions: 2
Compression:
Stored size: 315 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: #{result}" unless $CHILD_STATUS.exitstatus.zero? result end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
daily_weekly_monthly-0.0.4 | lib/daily_weekly_monthly/downloader.rb |
daily_weekly_monthly-0.0.3 | lib/daily_weekly_monthly/downloader.rb |