Module: Watchdog
- Defined in:
- lib/watchdog.rb,
lib/watchdog/detox.rb,
lib/watchdog/utils.rb,
lib/watchdog/version.rb,
lib/watchdog/bootstrap.rb
Defined Under Namespace
Classes: Bootstrap, Detox, Utils
Constant Summary
collapse
- VERSION =
"1.0.4".freeze
Class Method Summary
collapse
Class Method Details
.bootstrap ⇒ Object
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/watchdog.rb', line 8
def self.bootstrap
if ENV['WATCHDOG_GIT_URL']
Watchdog::Bootstrap.clone_repository(ENV['WATCHDOG_GIT_URL'])
if ENV['WATCHDOG_GIT_BRANCH']
Watchdog::Bootstrap.change_branch(ENV['WATCHDOG_GIT_BRANCH'])
end
Watchdog::Bootstrap.setup_environment
if ENV['WATCHDOG_SETUP_CMD']
Watchdog::Bootstrap.setup_project(ENV['WATCHDOG_SETUP_CMD'])
end
else
puts 'Bootstrap execution missing WATCHDOG_GIT_URL in environment'
end
end
|
.bootstrap_cleanup ⇒ Object
26
27
28
|
# File 'lib/watchdog.rb', line 26
def self.bootstrap_cleanup
Watchdog::Bootstrap.cleanup
end
|
.run_detox ⇒ Object
30
31
32
33
|
# File 'lib/watchdog.rb', line 30
def self.run_detox
runner = Watchdog::Detox.new
runner.run
end
|