6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# File 'lib/vet-ci/setup.rb', line 6
def go
unless Dir.exists? '.vetci'
Dir.mkdir '.vetci'
end
unless File.exists? 'Vetfile'
puts "No Vetfile found. Please create one and try again."
Process.exit
end
begin
parameters = YAML.load(File.read('Vetfile'))
rescue
puts "Unable to load Vetfile. Check its syntax and try again."
Process.exit
end
Project.datastore = PStore.new(File.join('.vetci', 'projects.pstore'))
Project.parse_vetfile_contents(parameters["projects"])
return parameters
end
|