Sha256: 91a33e65362124ccb0c0c54451ca04d6207b09c400d5851274b1eb18dbf5ee4e
Contents?: true
Size: 722 Bytes
Versions: 2
Compression:
Stored size: 722 Bytes
Contents
module YkCommand class YkConfig < Thor include Thor::Actions no_commands do def read_config(at_path,file_name) hostA = 'yeah' hostB = 'ka' config_repo_url = "http://gitlab.#{hostA}#{hostB}.com/App/iOS/YKComponents/com-manage-platform-resources/configruation-files.git" system("git clone #{config_repo_url} #{at_path+'/configruation-files'}") config_file_path = "#{at_path}/#{file_name}" FileUtils.copy_file "#{at_path+'/configruation-files/'+file_name}", config_file_path FileUtils.remove_dir("#{at_path+'/configruation-files'}", true) File.exist?(config_file_path) ? YAML.load_file(config_file_path) : {} end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yk_command-0.5.3 | lib/yk_command/config/yk_config.rb |
yk_command-0.5.2 | lib/yk_command/config/yk_config.rb |