com.heroku
Class HerokuPlugin

java.lang.Object
  extended by hudson.Plugin
      extended by com.heroku.HerokuPlugin
All Implemented Interfaces:
hudson.model.Saveable

public final class HerokuPlugin
extends hudson.Plugin

Author:
Ryan Brainard

Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.Plugin
hudson.Plugin.DummyImpl
 
Field Summary
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
HerokuPlugin()
           
 
Method Summary
 void configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
           
 String getDefaultApiKey()
          For Jenkins UI
 boolean isEnabled(String enableable)
          Checks project properties to see if a given attribute is enable.
 void start()
           
 
Methods inherited from class hudson.Plugin
configure, doDynamic, getConfigXml, load, postInitialize, save, setServletContext, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HerokuPlugin

public HerokuPlugin()
Method Detail

start

public void start()
           throws Exception
Overrides:
start in class hudson.Plugin
Throws:
Exception

getDefaultApiKey

public String getDefaultApiKey()
For Jenkins UI

Returns:
encrypted api key

configure

public void configure(org.kohsuke.stapler.StaplerRequest req,
                      net.sf.json.JSONObject formData)
               throws IOException,
                      javax.servlet.ServletException,
                      hudson.model.Descriptor.FormException
Overrides:
configure in class hudson.Plugin
Throws:
IOException
javax.servlet.ServletException
hudson.model.Descriptor.FormException

isEnabled

public boolean isEnabled(String enableable)
Checks project properties to see if a given attribute is enable.

Parameters:
enableable - String value of something that can have .enabled appended in property file. Usually a build step class name.
Returns:
true if enabled


Copyright © 2004-2012. All Rights Reserved.