lib/tasks/run.rake in yast-rake-0.2.2 vs lib/tasks/run.rake in yast-rake-0.2.3
- old
+ new
@@ -19,11 +19,11 @@
def set_y2dir
ENV["Y2DIR"] = Dir["**/src"].join(":")
end
desc "Run given client"
-task :run, :client do |t, args|
- args.with_defaults = { :client => nil }
+task :run, :client do |_t, args|
+ args.with_defaults = { client: nil }
client = args[:client]
if client
client = Dir["**/src/clients/#{client}.rb"].first
else
clients = Dir["**/src/clients/*.rb"]