class Rustic::CommandBuilders::Check
Attributes
config[R]
Public Class Methods
new(config)
click to toggle source
# File lib/rustic/command_builders/check.rb, line 6 def initialize(config) @config = config.check_config end
Public Instance Methods
build()
click to toggle source
# File lib/rustic/command_builders/check.rb, line 10 def build [ "check", @config&.check_unused ? "--check-unused" : nil, read_data_subset, @config&.with_cache ? "--with-cache" : nil ].compact end
Private Instance Methods
read_data_subset()
click to toggle source
# File lib/rustic/command_builders/check.rb, line 21 def read_data_subset return nil if @config.nil? || @config.read_data_subset.nil? return "--read-data" if @config.read_data_subset == 100 "--read-data-subset=#{@config.read_data_subset}%" end