Sha256: 717526142b143fbea7b94447b0c846a7acc36a258d70967ca670dc1629db33af
Contents?: true
Size: 443 Bytes
Versions: 6
Compression:
Stored size: 443 Bytes
Contents
module Souls class Github < Thor desc "secret_set", "Github Secret Set by Github CLI" def secret_set require("#{Souls.get_api_path}/config/souls") file_path = ".env.production" File.open(file_path, "r") do |file| file.each_line do |line| key_and_value = line.split("=") system("gh secret set #{key_and_value[0]} -b \"#{key_and_value[1].strip}\"") end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems