Method: TravisCustomDeploy::Deployment#check_services
- Defined in:
- lib/travis-custom-deploy/deployment.rb
#check_services(first_file) ⇒ Object
Check if the first file matches service:<service-name> and try to determine the files based on the service.
first_file the first file given
47 48 49 50 51 52 53 54 55 56 |
# File 'lib/travis-custom-deploy/deployment.rb', line 47 def check_services(first_file) if first_file.start_with?('service:') service = first_file.sub(/service:/, '') SERVICES.each do |k,v| if k == service @files = v end end end end |