7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/soaring/initializer.rb', line 7
def initialize_project
Dir.mktmpdir { |dir|
temporary_folder = dir
temporary_soar_sc_folder = "#{temporary_folder}/soar_sc"
`git --git-dir=/dev/null clone --quiet --progress --branch #{@options[:soar_sc_refspec]} --depth=1 [email protected]:hetznerZA/soar_sc.git #{temporary_soar_sc_folder}`
`yes | cp -rf #{temporary_soar_sc_folder}/config #{@options[:project_root]}`
`yes | cp -rf #{temporary_soar_sc_folder}/docker #{@options[:project_root]}`
`yes | cp -rf #{temporary_soar_sc_folder}/lib #{@options[:project_root]}`
`yes | cp -rf #{temporary_soar_sc_folder}/smaak #{@options[:project_root]}`
`yes | cp -rf #{temporary_soar_sc_folder}/config.ru #{@options[:project_root]}`
`yes | cp -rf #{temporary_soar_sc_folder}/Gemfile #{@options[:project_root]}`
`yes | cp -rf #{temporary_soar_sc_folder}/.ruby-gemset #{@options[:project_root]}`
`yes | cp -rf #{temporary_soar_sc_folder}/.ruby-version #{@options[:project_root]}`
`yes | cp -rf #{temporary_soar_sc_folder}/.gitignore #{@options[:project_root]}`
}
end
|