lib/jenkinson/cli.rb in jenkinson-0.0.2 vs lib/jenkinson/cli.rb in jenkinson-0.0.3

- old
+ new

@@ -1,10 +1,10 @@ require "thor" module Jenkinson class CLI < Thor desc "set_jobs FROM_FOLDER", "create (or update) jobs from the ./jobs folder" def set_jobs(from = nil) - Jenkinson::Hub.create_or_update_jobs(Dir["#{from}/*.xml"]) + Jenkinson::Hub.create_or_update_jobs(from) end desc "get_jobs TARGET_FOLDER", "get jobs configurations" def get_jobs(target = nil) Jenkinson::Hub.get_jobs_config(target)