Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Rescue error while publishing
  • Loading branch information
vishrutshah committed Sep 12, 2017
commit 1ace3fd6a0ee604884cc79da42ddbc1a7a97ce40
8 changes: 6 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,12 @@ namespace :arm do
desc 'Push gem for each of the Azure Resource Manager projects'
task :release, [:key] => :build do |_, args|
each_gem do |dir|
# Using execute method so that keys are not logged onto console
execute("gem push ./pkg/#{dir}-#{version}.gem" + (args[:key].nil? ? '' : " -k #{args[:key]}"))
begin
# Using execute method so that keys are not logged onto console
execute("gem push ./pkg/#{dir}-#{version}.gem" + (args[:key].nil? ? '' : " -k #{args[:key]}"))
rescue Exception => ex
puts "Error occurred while publishing #{dir}: #{ex}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would do caps on "ERROR"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's true but i'll revert this changes once we release :)

end
end
end

Expand Down