Sha256: 26b44f6f9a759b62a8a62a082cf0fb2b500a7355bd3298b9905b5c2ad03868bd
Contents?: true
Size: 1.32 KB
Versions: 3
Compression:
Stored size: 1.32 KB
Contents
module Soaring class Initializer def initialize(options) @options = options end def initialize_project(project_folder) @project_folder = project_folder git_refspec = 'STABLE' #default to STABLE if not specified git_refspec = @options[:soar_sc_refspec] if @options[:soar_sc_refspec] Dir.mktmpdir { |dir| temporary_folder = dir temporary_soar_sc_folder = "#{temporary_folder}/soar_sc" `git --git-dir=/dev/null clone --quiet --progress --branch #{git_refspec} --depth=1 git@gitlab.host-h.net:hetznerZA/soar_sc.git #{temporary_soar_sc_folder}` `yes | cp -rf #{temporary_soar_sc_folder}/config #{@project_folder}` `yes | cp -rf #{temporary_soar_sc_folder}/docker #{@project_folder}` `yes | cp -rf #{temporary_soar_sc_folder}/lib #{@project_folder}` `yes | cp -rf #{temporary_soar_sc_folder}/smaak #{@project_folder}` `yes | cp -rf #{temporary_soar_sc_folder}/config.ru #{@project_folder}` `yes | cp -rf #{temporary_soar_sc_folder}/Gemfile #{@project_folder}` `yes | cp -rf #{temporary_soar_sc_folder}/.ruby-gemset #{@project_folder}` `yes | cp -rf #{temporary_soar_sc_folder}/.ruby-version #{@project_folder}` `yes | cp -rf #{temporary_soar_sc_folder}/.gitignore #{@project_folder}` } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
soaring-0.1.10 | lib/soaring/initializer.rb |
soaring-0.1.9 | lib/soaring/initializer.rb |
soaring-0.1.8 | lib/soaring/initializer.rb |