Sha256: 217c3f52e1db2a5e689cdfe08bb959148389defff6065cd7e49bc56d94a0754d

Contents?: true

Size: 858 Bytes

Versions: 16

Compression:

Stored size: 858 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>]
#
Backup::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

16 entries across 16 versions & 1 rubygems

Version Path
backup-3.8.0 templates/cli/model.erb
backup-3.7.2 templates/cli/model.erb
backup-3.7.1 templates/cli/model.erb
backup-3.7.0 templates/cli/model.erb
backup-3.6.0 templates/cli/model.erb
backup-3.5.1 templates/cli/model.erb
backup-3.5.0 templates/cli/model.erb
backup-3.4.0 templates/cli/model.erb
backup-3.3.2 templates/cli/model.erb
backup-3.3.1 templates/cli/model.erb
backup-3.3.0 templates/cli/model.erb
backup-3.2.0 templates/cli/model.erb
backup-3.1.3 templates/cli/model.erb
backup-3.1.2 templates/cli/model.erb
backup-3.1.1 templates/cli/model.erb
backup-3.1.0 templates/cli/model.erb