lib/jenkins/builder/app.rb in jenkins-builder-0.3.0 vs lib/jenkins/builder/app.rb in jenkins-builder-0.3.1
- old
+ new
@@ -28,11 +28,11 @@
module Builder
class App
attr_accessor :config, :client, :options
- def initialize(service, options={})
+ def initialize(service = nil, options={})
@options = options
@service = service
@config = Jenkins::Builder::Config.new(@service)
if @config.url && @config.username && @config.password
@@ -78,10 +78,10 @@
@config.save!
end
def list_aliases
@config.aliases.each do |k, v|
- puts "`%s' is alias for `%s'" % [k, v]
+ puts "%-10s --> %s" % [k, v]
end
end
def build_each(jobs)
if @options[:failfast]