Project

General

Profile

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

foreman_pipeline / app / lib / actions / foreman_pipeline / jenkins_instance / abstract_jenkins_instance_action.rb @ be52ca64

1
require 'net/ssh'
2
require 'uri'
3

    
4
module Actions
5
  module ForemanPipeline
6
    module JenkinsInstance
7
      class AbstractJenkinsInstanceAction < Actions::EntryAction
8
        include Mixins::SshExtension
9
        
10
        def parse_jenkins_hostname
11
          URI(input.fetch(:jenkins_url)).host
12
        end
13

    
14
      end
15
    end
16
  end
17
end