Sha256: 02a6acc7b30b2ad4d4e5d394146cf61ff4b9a644c10659a5069497a7efd0376a

Contents?: true

Size: 458 Bytes

Versions: 6

Compression:

Stored size: 458 Bytes

Contents

module Backup
  module Configuration
    module Helpers
      
      # A helper method for the config/backup.rb configuration file
      # Expects a trigger in argument one (STRING)
      # Expects a block of settings
      def backup(trigger, &block)
        backup = Backup::Configuration::Base.new(trigger)
        backup.instance_eval &block
        @backup_procedures ||= Array.new
        @backup_procedures << backup
      end
      
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
backup-2.3.0.3 lib/backup/configuration/helpers.rb
backup-2.3.0.2 lib/backup/configuration/helpers.rb
backup-2.3.0.1 lib/backup/configuration/helpers.rb
backup-2.3.0 lib/backup/configuration/helpers.rb
backup-2.2.1 lib/backup/configuration/helpers.rb
backup-2.2.0 lib/backup/configuration/helpers.rb