class Robut::Plugin::Shipr
Constants
- DEPLOYING
Public Class Methods
configuration()
click to toggle source
Public: The plugin configuration
Returns Robut::Plugin::Shipr::Configuration
# File lib/robut/plugin/shipr.rb, line 20 def configuration @configuration ||= Configuration.new end
configure() { |configuration| ... }
click to toggle source
Public: Configure the plugin
Examples
Robut::Plugin::Shipr.configure do |config| config.endpoint = 'http://shipr.company.com' end
# File lib/robut/plugin/shipr.rb, line 31 def configure yield configuration end
Private Instance Methods
deploy(*args)
click to toggle source
# File lib/robut/plugin/shipr.rb, line 48 def deploy(*args) deploy = Deploy.new(*args) response = deploy.perform.parsed_response reply DEPLOYING % [deploy.name, deploy.environment, "#{self.class.configuration.api_base}/deploys/#{response['id']}"] end