lib/jendle/core.rb in jendle-0.1.0 vs lib/jendle/core.rb in jendle-0.1.1

- old
+ new

@@ -19,7 +19,11 @@ } params[:username] = username if username params[:password] = password if password @client = JenkinsApi::Client.new(params) end + + def restart + @client.system.restart(true) + end end end