Sha256: 009e9ba59158c88ef7613abb07add798fb3187ab7e077197f9294b6a82f98490
Contents?: true
Size: 725 Bytes
Versions: 2
Compression:
Stored size: 725 Bytes
Contents
module YkCommand class YkConfig < Thor include Thor::Actions no_commands do def initialize(config_path) @at_path = config_path 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'}") FileUtils.remove_dir("#{@at_path+'/configruation-files/.git'}", true) end def read_config(file_name) config_file_path = "#{@at_path+'/configruation-files/'+file_name}" 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.5 | lib/yk_command/config/yk_config.rb |
yk_command-0.5.4 | lib/yk_command/config/yk_config.rb |