ref: refs/heads/master
commit 660017a91a9289c3df8d89945ceb76eda6663f99
Author: Duncan Mac-Vicar P
Date: Tue Jul 21 13:36:47 2009 +0200
rename this task
---
webservice-tasks/lib/tasks/check_syntax.rake | 20 ++++++++++++++++++++
webservice-tasks/lib/tasks/syntax_check.rake | 20 --------------------
2 files changed, 20 insertions(+), 20 deletions(-)
diff --git a/webservice-tasks/lib/tasks/check_syntax.rake b/webservice-tasks/lib/tasks/check_syntax.rake
new file mode 100644
index 0000000..bec0be9
--- /dev/null
+++ b/webservice-tasks/lib/tasks/check_syntax.rake
@@ -0,0 +1,20 @@
+require 'rake'
+
+desc "Check syntax of all Ruby (*.rb) files"
+task :syntax_check do
+ puts "* Starting syntax check..."
+
+ # check all *.rb files
+ Dir.glob("**/*.rb").each do |file|
+
+ `ruby -c #{file}`
+
+ if $?.exitstatus != 0
+ puts "ERROR: Syntax error found"
+ exit 1
+ end
+ end
+
+ puts "* Done"
+end
+
diff --git a/webservice-tasks/lib/tasks/syntax_check.rake b/webservice-tasks/lib/tasks/syntax_check.rake
deleted file mode 100644
index bec0be9..0000000
--- a/webservice-tasks/lib/tasks/syntax_check.rake
+++ /dev/null
@@ -1,20 +0,0 @@
-require 'rake'
-
-desc "Check syntax of all Ruby (*.rb) files"
-task :syntax_check do
- puts "* Starting syntax check..."
-
- # check all *.rb files
- Dir.glob("**/*.rb").each do |file|
-
- `ruby -c #{file}`
-
- if $?.exitstatus != 0
- puts "ERROR: Syntax error found"
- exit 1
- end
- end
-
- puts "* Done"
-end
-
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org