From 3e9c56d9eda7a1a06248f3cf2429fb1a454b73aa Mon Sep 17 00:00:00 2001 From: juliocabrera820 Date: Sat, 4 May 2024 14:21:16 -0600 Subject: [PATCH] show credentials content --- command_system.rb | 2 ++ main.rb | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/command_system.rb b/command_system.rb index 0ed6825..6bc806f 100644 --- a/command_system.rb +++ b/command_system.rb @@ -3,6 +3,8 @@ # Module to run a command and exit if it fails module CommandSystem def self.run_command(*cmd) + puts "Running command #{cmd}" + puts "Running command: #{cmd.join(' ')}" exit 1 unless system(*cmd) end end diff --git a/main.rb b/main.rb index dda6389..8a739ec 100644 --- a/main.rb +++ b/main.rb @@ -4,10 +4,12 @@ require_relative 'gem_builder' require_relative 'inputs' require_relative 'publish' +require_relative "command_system" begin - GemBuilder.build + # GemBuilder.build Credentials.generate_credentials_file + CommandSystem.run_command("cat", Credentials.add_gh_credentials) Publish.to_rubygems if Inputs.rubygems_api_key? Publish.to_github_packages if Inputs.github_token? ensure