10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# File 'lib/git_spec/cli.rb', line 10
def spec
GitSpec.configure do |config|
config.src_root = options.src_root
config.log_level = options.log_level
end
files, missing_files = GitSpec.changed_files
missing_files_banner(missing_files) if missing_files.any?
filtered_to_banner(files) if files.any?
if options.dry_run
say("Dry run enabled. Would have sent the following files to the spec runner:", :yellow)
say(files.join(' '), :yellow)
else
system "#{options.command} #{files.join(' ')}"
end
end
|