Class: Jenkins2::API::Plugins::Plugin::Proxy
- Inherits:
-
ResourceProxy
- Object
- ResourceProxy
- Jenkins2::API::Plugins::Plugin::Proxy
- Defined in:
- lib/jenkins2/api/plugins.rb
Instance Attribute Summary
Attributes inherited from ResourceProxy
Instance Method Summary collapse
Methods inherited from ResourceProxy
#initialize, #method_missing, #raw, #respond_to_missing?, #subject
Constructor Details
This class inherits a constructor from Jenkins2::ResourceProxy
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Jenkins2::ResourceProxy
Instance Method Details
#active? ⇒ Boolean
48 49 50 |
# File 'lib/jenkins2/api/plugins.rb', line 48 def active? raw.instance_of? ::Net::HTTPOK and subject.active end |
#uninstall ⇒ Object
42 43 44 45 46 |
# File 'lib/jenkins2/api/plugins.rb', line 42 def uninstall path = build_path 'doUninstall' form_data = { 'Submit' => 'Yes', 'json' => '{}' } connection.post(path, ::URI.encode_www_form(form_data)).code == '302' end |