7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# File 'lib/paramsync/cli/config_command.rb', line 7
def run
Paramsync::CLI.configure
puts " Config file: #{Paramsync.config.config_file}"
puts " Verbose: #{Paramsync.config.verbose?.to_s.bold}"
puts
puts "Sync target defaults:"
puts " Chomp trailing newlines from local files: #{Paramsync.config.chomp?.to_s.bold}"
puts " Delete remote keys with no local file: #{Paramsync.config.delete?.to_s.bold}"
puts
puts "Sync targets:"
Paramsync.config.sync_targets.each do |target|
if target.name
puts "* #{target.name.bold}"
print ' '
else
print '*'
end
puts " Region: #{target.region}"
puts " Local type: #{target.type == :dir ? 'Directory' : 'Single file'}"
puts " #{target.type == :dir ? " Dir" : "File"} path: #{target.path}"
puts " Prefix: #{target.prefix}"
puts " Account: #{target.account}"
puts " Autochomp? #{target.chomp?}"
puts " Delete? #{target.delete?}"
if not target.exclude.empty?
puts " Exclusions:"
target.exclude.each do |exclusion|
puts " - #{exclusion}"
end
end
puts
end
end
|