-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathintegrator.rb
More file actions
executable file
·43 lines (36 loc) · 1.05 KB
/
integrator.rb
File metadata and controls
executable file
·43 lines (36 loc) · 1.05 KB
1
2
3
4
5
6
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
42
43
#!/usr/bin/env ruby
$LOAD_PATH.unshift(File.expand_path("#{File.dirname(__FILE__)}/src")) unless $LOAD_PATH.include?(File.expand_path("#{File.dirname(__FILE__)}/src"))
require 'colorize'
require 'json'
require 'net/http'
require 'optparse'
require 'resolv-replace'
require 'slack-notifier'
require 'test_platform'
require 'integrator'
require 'options'
options = get_options
full_platform_names = {
'k' => 'kubernetes',
'kubernetes' => 'kubernetes',
'e' => 'ecs',
'ecs' => 'ecs',
'n' => 'nomad',
'nomad' => 'nomad',
}
if options[:run_test_platform]
TestPlatform.new(full_platform_names[options[:test_platform]]).run
exit(0)
end
if options[:force_build]
puts "Forcing deployment of application: #{options[:forced_build_name]}"
end
i = Integrator.new(
provider=options[:provider],
force_build=options[:force_build],
forced_build_name=options[:forced_build_name],
flag_cleanup_dir=options[:flag_cleanup_dir],
children_only=options[:children_only],
flag_skip_tests=options[:flag_skip_tests]
)
i.run()