Project

General

Profile

Download (265 Bytes) Statistics
| Branch: | Tag: | Revision:

foreman_pipeline / app / lib / actions / foreman_pipeline / mixins / uri_extension.rb @ be52ca64

1
module Actions
2
  module ForemanPipeline
3
    module Mixins
4
      module UriExtension
5
        extend ActiveSupport::Concern
6
        require 'uri'
7

    
8
        def jenkins_hostname(job)
9
          URI(job.jenkins_instance.url).host  
10
        end
11
      end
12
    end
13
  end
14
end