-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CDB-8052 CDB-8050 Upgraded to ruby 3.1.2 (#305)
* CPD-8050: Update to ruby 3.1.2 * Fixed s3 client keyword argument error * CPD-8050: volume_id fix for instance hash * CPD-8052: moonhot status output fix * CPD-8050: rubocop fixes * CPD-8050: Fixed rubocop Naming/MethodParameterName. --------- Co-authored-by: rutuja810 <[email protected]> Co-authored-by: Kaushik Sirineni <[email protected]>
- Loading branch information
1 parent
36969f8
commit 04bbbdf
Showing
86 changed files
with
532 additions
and
425 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.6.8 | ||
3.1.2 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
require 'moonshot' | ||
|
||
# This is the main entry point for the `moonshot` command-line tool. | ||
begin | ||
Moonshot::CommandLine.new.run! | ||
rescue => e | ||
rescue StandardError => e | ||
warn "#{e} (at #{e.backtrace.first})" | ||
raise e if ENV['MOONSHOT_BACKTRACE'] | ||
|
||
exit 1 | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
# frozen_string_literal: true | ||
|
||
module Moonshot | ||
# The AlwaysUseDefaultSource will always use the previous value in | ||
# the stack, or use the default value during stack creation. This is | ||
# useful if plugins provide the value for a parameter, and we don't | ||
# want to prompt the user for an override. Of course, overrides from | ||
# answer files or command-line arguments will always apply. | ||
class AlwaysUseDefaultSource | ||
def get(sp) | ||
def get(param) | ||
# Don't do anything, the default will apply on create, and the | ||
# previous value will be used on update. | ||
return if sp.default? | ||
return if param.default? | ||
|
||
raise "Parameter #{sp.name} does not have a default, cannot use AlwaysUseDefaultSource!" | ||
raise "Parameter #{param.name} does not have a default, cannot use AlwaysUseDefaultSource!" | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.