Sha256: 1670620f50546853eac0469ba95f5282d2de152f1062e64dd778c77c8bc23f59
Contents?: true
Size: 850 Bytes
Versions: 3
Compression:
Stored size: 850 Bytes
Contents
# encoding: utf-8 ## # Backup Generated: <%= @options[:trigger] %> # Once configured, you can run the backup with the following command: # # $ backup perform -t <%= @options[:trigger] %> [-c <path_to_configuration_file>] # Model.new(:<%= @options[:trigger] %>, 'Description for <%= @options[:trigger] %>') do <% if @options[:splitter] %> <%= Backup::Template.new.result("cli/splitter") %> <% end; if @options[:archives] %> <%= Backup::Template.new.result("cli/archive") %> <% end; [:databases, :storages, :syncers, :encryptors, :compressors, :notifiers].each do |item| if @options[item] @options[item].split(',').map(&:strip).uniq.each do |entry| if File.exist?(File.join(Backup::TEMPLATE_PATH, 'cli', item.to_s[0..-2], entry)) %> <%= Backup::Template.new.result("cli/#{item.to_s[0..-2]}/#{entry}") %> <% end end end end %> end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
backup-3.11.0 | templates/cli/model.erb |
backup-3.10.0 | templates/cli/model.erb |
backup-3.9.0 | templates/cli/model.erb |