From fb168f74802dd6f74e7d8cf21fcf6f72932e08c6 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 20 Sep 2019 06:44:36 +0000 Subject: [PATCH 1/2] testing the rake --- config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.yaml b/config.yaml index d79087c6a..34584fd2d 100644 --- a/config.yaml +++ b/config.yaml @@ -18,7 +18,7 @@ beef: # Used by both the RESTful API and the Admin interface credentials: user: "beef" - passwd: "beef" + passwd: "beeF" # Interface / IP restrictions restrictions: From c2f992292046b812efba21f1921579c0f3c42c20 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 20 Sep 2019 06:55:30 +0000 Subject: [PATCH 2/2] updated rakefile change --- Rakefile | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/Rakefile b/Rakefile index 3f3d88920..f40716bbe 100644 --- a/Rakefile +++ b/Rakefile @@ -6,6 +6,19 @@ require 'yaml' #require 'pry-byebug' +if defined?(RUBY_ENGINE) && RUBY_ENGINE == "ruby" + module Kernel + alias :_at_exit :at_exit + def at_exit(&block) + _at_exit do + exit_status = $!.status if $!.is_a?(SystemExit) + block.call + exit exit_status if exit_status + end + end + end +end + task :default => ["quick"] desc "Run quick tests" @@ -279,15 +292,3 @@ end ################################ -if defined?(RUBY_ENGINE) && RUBY_ENGINE == "ruby" - module Kernel - alias :_at_exit :at_exit - def at_exit(&block) - _at_exit do - exit_status = $!.status if $!.is_a?(SystemExit) - block.call - exit exit_status if exit_status - end - end - end -end \ No newline at end of file