bcome 1.3.2 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. checksums.yaml +5 -5
  2. data/bin/bcome +13 -8
  3. data/lib/bcome.rb +7 -11
  4. data/lib/objects/bcome/version.rb +19 -1
  5. data/lib/objects/bootup.rb +13 -5
  6. data/lib/objects/command/local.rb +2 -0
  7. data/lib/objects/config_factory.rb +3 -0
  8. data/lib/objects/driver/base.rb +36 -4
  9. data/lib/objects/driver/bucket.rb +6 -4
  10. data/lib/objects/driver/ec2.rb +35 -4
  11. data/lib/objects/driver/gcp.rb +124 -0
  12. data/lib/objects/driver/gcp/authentication/api_key.rb +6 -0
  13. data/lib/objects/driver/gcp/authentication/oauth.rb +101 -0
  14. data/lib/objects/driver/gcp/authentication/service_account.rb +7 -0
  15. data/lib/objects/driver/static.rb +2 -0
  16. data/lib/objects/encryptor.rb +26 -24
  17. data/lib/objects/exception/argument_error_invoking_method_from_command_line.rb +8 -4
  18. data/lib/objects/exception/base.rb +14 -10
  19. data/lib/objects/exception/can_only_subselect_on_inventory.rb +8 -4
  20. data/lib/objects/exception/cannot_authenticate_to_gcp.rb +11 -0
  21. data/lib/objects/exception/cannot_find_internal_registry_klass.rb +8 -4
  22. data/lib/objects/exception/cannot_find_inventory.rb +11 -0
  23. data/lib/objects/exception/cannot_find_subselection_parent.rb +8 -4
  24. data/lib/objects/exception/cant_find_key_in_cloud_tags.rb +8 -4
  25. data/lib/objects/exception/cant_find_key_in_metadata.rb +8 -4
  26. data/lib/objects/exception/cant_find_proxy_host_by_identifier.rb +8 -4
  27. data/lib/objects/exception/cant_find_proxy_host_by_namespace.rb +8 -4
  28. data/lib/objects/exception/could_not_initiate_ssh_connection.rb +8 -4
  29. data/lib/objects/exception/could_not_initiate_ssh_connection_through_backend_proxy.rb +8 -4
  30. data/lib/objects/exception/could_not_retrieve_terraform_output.rb +11 -0
  31. data/lib/objects/exception/deprecation_warning.rb +9 -7
  32. data/lib/objects/exception/duplicate_command_line_argument_key.rb +8 -4
  33. data/lib/objects/exception/ec2_driver_missing_provisioning_region.rb +8 -4
  34. data/lib/objects/exception/failed_to_run_local_command.rb +8 -4
  35. data/lib/objects/exception/generic.rb +11 -0
  36. data/lib/objects/exception/interactive_session_halt.rb +6 -2
  37. data/lib/objects/exception/invalid_bcome_breadcrumb.rb +8 -4
  38. data/lib/objects/exception/invalid_breadcrumb.rb +8 -4
  39. data/lib/objects/exception/invalid_context_command.rb +8 -4
  40. data/lib/objects/exception/invalid_gcp_authentication_scheme.rb +11 -0
  41. data/lib/objects/exception/invalid_identifier.rb +8 -4
  42. data/lib/objects/exception/invalid_machines_cache_config.rb +8 -4
  43. data/lib/objects/exception/invalid_matcher_query.rb +8 -4
  44. data/lib/objects/exception/invalid_meta_data_config.rb +8 -4
  45. data/lib/objects/exception/invalid_metadata_encryption_key.rb +8 -4
  46. data/lib/objects/exception/invalid_network_config.rb +8 -4
  47. data/lib/objects/exception/invalid_network_driver_type.rb +8 -4
  48. data/lib/objects/exception/invalid_port_forward_request.rb +11 -0
  49. data/lib/objects/exception/invalid_proxy_config.rb +8 -4
  50. data/lib/objects/exception/invalid_regexp_matcher_in_registry.rb +8 -4
  51. data/lib/objects/exception/invalid_registry_arguments_type.rb +8 -4
  52. data/lib/objects/exception/invalid_registry_command_name_length.rb +8 -4
  53. data/lib/objects/exception/invalid_registry_data_config.rb +8 -4
  54. data/lib/objects/exception/invalid_restriction_key_in_registry.rb +8 -4
  55. data/lib/objects/exception/invalid_ssh_config.rb +8 -4
  56. data/lib/objects/exception/inventories_cannot_have_subviews.rb +8 -4
  57. data/lib/objects/exception/malformed_command_line_arguments.rb +8 -4
  58. data/lib/objects/exception/method_invocation_requires_parameter.rb +8 -4
  59. data/lib/objects/exception/method_name_conflict_in_registry.rb +8 -4
  60. data/lib/objects/exception/missing_argument_for_registry_command.rb +8 -4
  61. data/lib/objects/exception/missing_description_on_view.rb +8 -4
  62. data/lib/objects/exception/missing_execute_on_registry_object.rb +8 -4
  63. data/lib/objects/exception/missing_gcp_authentication_scheme.rb +11 -0
  64. data/lib/objects/exception/missing_gcp_service_scopes.rb +11 -0
  65. data/lib/objects/exception/missing_identifier_on_view.rb +8 -4
  66. data/lib/objects/exception/missing_inventory_contributors.rb +11 -0
  67. data/lib/objects/exception/missing_ip_address_on_server.rb +8 -4
  68. data/lib/objects/exception/missing_network_config.rb +8 -4
  69. data/lib/objects/exception/missing_or_invalid_client_secrets.rb +11 -0
  70. data/lib/objects/exception/missing_params_for_rsync.rb +8 -4
  71. data/lib/objects/exception/missing_params_for_scp.rb +8 -4
  72. data/lib/objects/exception/missing_subselection_key.rb +8 -4
  73. data/lib/objects/exception/missing_type_on_view.rb +8 -4
  74. data/lib/objects/exception/no_node_found_for_breadcrumb.rb +8 -4
  75. data/lib/objects/exception/no_node_named_by_identifier.rb +8 -4
  76. data/lib/objects/exception/node_identifiers_must_be_unique.rb +8 -4
  77. data/lib/objects/exception/orchestration_script_does_not_exist.rb +8 -4
  78. data/lib/objects/exception/proxy_host_node_does_not_have_public_ip_address.rb +8 -4
  79. data/lib/objects/exception/unknown_dynamic_server_type.rb +11 -0
  80. data/lib/objects/exception/unknown_method_for_namespace.rb +8 -4
  81. data/lib/objects/interactive/session.rb +4 -1
  82. data/lib/objects/interactive/session_item/base.rb +2 -0
  83. data/lib/objects/interactive/session_item/capture_input.rb +2 -0
  84. data/lib/objects/interactive/session_item/transparent_ssh.rb +29 -23
  85. data/lib/objects/loading_bar/handler.rb +80 -0
  86. data/lib/objects/loading_bar/indicator/base.rb +64 -0
  87. data/lib/objects/loading_bar/indicator/basic.rb +34 -0
  88. data/lib/objects/loading_bar/indicator/progress.rb +26 -0
  89. data/lib/objects/loading_bar/pid_bucket.rb +27 -0
  90. data/lib/objects/modules/context.rb +13 -9
  91. data/lib/objects/modules/registry_management.rb +16 -10
  92. data/lib/objects/modules/ui_output.rb +10 -6
  93. data/lib/objects/modules/workspace_commands.rb +159 -155
  94. data/lib/objects/modules/workspace_menu.rb +129 -124
  95. data/lib/objects/node/attributes.rb +13 -21
  96. data/lib/objects/node/base.rb +116 -67
  97. data/lib/objects/node/cache_handler.rb +2 -0
  98. data/lib/objects/node/collection.rb +10 -9
  99. data/lib/objects/node/factory.rb +35 -28
  100. data/lib/objects/node/inventory/base.rb +100 -100
  101. data/lib/objects/node/inventory/defined.rb +110 -89
  102. data/lib/objects/node/inventory/merge.rb +43 -0
  103. data/lib/objects/node/inventory/subselect.rb +64 -46
  104. data/lib/objects/node/kube/base.rb +51 -0
  105. data/lib/objects/node/kube/container.rb +9 -0
  106. data/lib/objects/node/kube/estate.rb +19 -0
  107. data/lib/objects/node/kube/namespace.rb +24 -0
  108. data/lib/objects/node/kube/pod.rb +24 -0
  109. data/lib/objects/node/kube_wrap.rb +26 -0
  110. data/lib/objects/node/meta/base.rb +8 -1
  111. data/lib/objects/node/meta/cloud.rb +2 -0
  112. data/lib/objects/node/meta/local.rb +2 -0
  113. data/lib/objects/node/meta_data_factory.rb +3 -1
  114. data/lib/objects/node/meta_data_loader.rb +29 -23
  115. data/lib/objects/node/resources/base.rb +5 -1
  116. data/lib/objects/node/resources/inventory.rb +7 -5
  117. data/lib/objects/node/resources/merged.rb +38 -0
  118. data/lib/objects/node/resources/sub_inventory.rb +7 -4
  119. data/lib/objects/node/server/base.rb +91 -65
  120. data/lib/objects/node/server/dynamic/base.rb +23 -0
  121. data/lib/objects/node/server/{dynamic.rb → dynamic/ec2.rb} +14 -13
  122. data/lib/objects/node/server/dynamic/gcp.rb +47 -0
  123. data/lib/objects/node/server/static.rb +13 -2
  124. data/lib/objects/orchestration/base.rb +10 -0
  125. data/lib/objects/orchestration/interactive_terraform.rb +62 -27
  126. data/lib/objects/orchestrator.rb +22 -0
  127. data/lib/objects/parser/bread_crumb.rb +3 -1
  128. data/lib/objects/registry/arguments/base.rb +3 -1
  129. data/lib/objects/registry/arguments/command_line.rb +6 -1
  130. data/lib/objects/registry/arguments/console.rb +4 -1
  131. data/lib/objects/registry/command/base.rb +3 -0
  132. data/lib/objects/registry/command/external.rb +4 -2
  133. data/lib/objects/registry/command/group.rb +6 -3
  134. data/lib/objects/registry/command/internal.rb +3 -1
  135. data/lib/objects/registry/command/shortcut.rb +17 -9
  136. data/lib/objects/registry/command_list.rb +2 -0
  137. data/lib/objects/registry/loader.rb +10 -10
  138. data/lib/objects/ssh/bootstrap.rb +3 -1
  139. data/lib/objects/ssh/command.rb +10 -5
  140. data/lib/objects/ssh/command_exec.rb +13 -9
  141. data/lib/objects/ssh/connection_wrangler.rb +105 -0
  142. data/lib/objects/ssh/connector.rb +100 -0
  143. data/lib/objects/ssh/driver.rb +27 -215
  144. data/lib/objects/ssh/driver_concerns/command_strings.rb +17 -0
  145. data/lib/objects/ssh/driver_concerns/connection.rb +78 -0
  146. data/lib/objects/ssh/driver_concerns/functions.rb +89 -0
  147. data/lib/objects/ssh/driver_concerns/user.rb +32 -0
  148. data/lib/objects/ssh/{proxy_data.rb → proxy_hop.rb} +52 -7
  149. data/lib/objects/ssh/script_exec.rb +4 -1
  150. data/lib/objects/ssh/tunnel/local_port_forward.rb +5 -6
  151. data/lib/objects/ssh/tunnel_keeper.rb +21 -0
  152. data/lib/objects/ssh/window.rb +31 -0
  153. data/lib/objects/startup.rb +52 -0
  154. data/lib/objects/system/local.rb +3 -0
  155. data/lib/objects/terraform/output.rb +41 -0
  156. data/lib/objects/workspace.rb +3 -14
  157. data/patches/irb.rb +29 -6
  158. data/patches/string-encrypt.rb +20 -23
  159. data/patches/string.rb +5 -1
  160. data/patches/string_stylesheet.rb +2 -0
  161. metadata +101 -23
  162. data/lib/objects/progress_bar.rb +0 -30
  163. data/lib/objects/ssh/connection_handler.rb +0 -101
  164. data/lib/objects/terraform/parser.rb +0 -23
  165. data/lib/objects/terraform/state.rb +0 -34
@@ -1,7 +1,11 @@
1
- module ::Bcome::Exception
2
- class InvalidBcomeBreadcrumb < ::Bcome::Exception::Base
3
- def message_prefix
4
- 'Invalid bcome breadcrumb'
1
+ # frozen_string_literal: true
2
+
3
+ module Bcome
4
+ module Exception
5
+ class InvalidBcomeBreadcrumb < ::Bcome::Exception::Base
6
+ def message_prefix
7
+ 'Invalid bcome breadcrumb'
8
+ end
5
9
  end
6
10
  end
7
11
  end
@@ -1,7 +1,11 @@
1
- module ::Bcome::Exception
2
- class InvalidBreadcrumb < ::Bcome::Exception::Base
3
- def message_prefix
4
- 'Invalid breadcrumb: '
1
+ # frozen_string_literal: true
2
+
3
+ module Bcome
4
+ module Exception
5
+ class InvalidBreadcrumb < ::Bcome::Exception::Base
6
+ def message_prefix
7
+ 'Invalid breadcrumb: '
8
+ end
5
9
  end
6
10
  end
7
11
  end
@@ -1,7 +1,11 @@
1
- module ::Bcome::Exception
2
- class InvalidContextCommand < ::Bcome::Exception::Base
3
- def message_prefix
4
- 'Invalid config in registry file '
1
+ # frozen_string_literal: true
2
+
3
+ module Bcome
4
+ module Exception
5
+ class InvalidContextCommand < ::Bcome::Exception::Base
6
+ def message_prefix
7
+ 'Invalid config in registry file '
8
+ end
5
9
  end
6
10
  end
7
11
  end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Bcome
4
+ module Exception
5
+ class InvalidGcpAuthenticationScheme < ::Bcome::Exception::Base
6
+ def message_prefix
7
+ 'Invalid authentication scheme'
8
+ end
9
+ end
10
+ end
11
+ end
@@ -1,7 +1,11 @@
1
- module ::Bcome::Exception
2
- class InvalidIdentifier < ::Bcome::Exception::Base
3
- def message_prefix
4
- 'View has invalid identifier'
1
+ # frozen_string_literal: true
2
+
3
+ module Bcome
4
+ module Exception
5
+ class InvalidIdentifier < ::Bcome::Exception::Base
6
+ def message_prefix
7
+ 'View has invalid identifier'
8
+ end
5
9
  end
6
10
  end
7
11
  end
@@ -1,7 +1,11 @@
1
- module ::Bcome::Exception
2
- class InvalidMachinesCacheConfig < ::Bcome::Exception::Base
3
- def message_prefix
4
- 'Your machines cache configuration is invalid'
1
+ # frozen_string_literal: true
2
+
3
+ module Bcome
4
+ module Exception
5
+ class InvalidMachinesCacheConfig < ::Bcome::Exception::Base
6
+ def message_prefix
7
+ 'Your machines cache configuration is invalid'
8
+ end
5
9
  end
6
10
  end
7
11
  end
@@ -1,7 +1,11 @@
1
- module ::Bcome::Exception
2
- class InvalidMatcherQuery < ::Bcome::Exception::Base
3
- def message_prefix
4
- 'Invalid matcher query'
1
+ # frozen_string_literal: true
2
+
3
+ module Bcome
4
+ module Exception
5
+ class InvalidMatcherQuery < ::Bcome::Exception::Base
6
+ def message_prefix
7
+ 'Invalid matcher query'
8
+ end
5
9
  end
6
10
  end
7
11
  end
@@ -1,7 +1,11 @@
1
- module ::Bcome::Exception
2
- class InvalidMetaDataConfig < ::Bcome::Exception::Base
3
- def message_prefix
4
- 'Invalid meta data config in metadata file '
1
+ # frozen_string_literal: true
2
+
3
+ module Bcome
4
+ module Exception
5
+ class InvalidMetaDataConfig < ::Bcome::Exception::Base
6
+ def message_prefix
7
+ 'Invalid meta data config in metadata file '
8
+ end
5
9
  end
6
10
  end
7
11
  end
@@ -1,7 +1,11 @@
1
- module Bcome::Exception
2
- class InvalidMetaDataEncryptionKey < ::Bcome::Exception::Base
3
- def message_prefix
4
- 'Your metadata encryption key is invalid - your metadata files are encrypted with a different key.'
1
+ # frozen_string_literal: true
2
+
3
+ module Bcome
4
+ module Exception
5
+ class InvalidMetaDataEncryptionKey < ::Bcome::Exception::Base
6
+ def message_prefix
7
+ 'Your metadata encryption key is invalid - your metadata files are encrypted with a different key.'
8
+ end
5
9
  end
6
10
  end
7
11
  end
@@ -1,7 +1,11 @@
1
- module ::Bcome::Exception
2
- class InvalidNetworkConfig < ::Bcome::Exception::Base
3
- def message_prefix
4
- 'Your network configuration is invalid'
1
+ # frozen_string_literal: true
2
+
3
+ module Bcome
4
+ module Exception
5
+ class InvalidNetworkConfig < ::Bcome::Exception::Base
6
+ def message_prefix
7
+ 'Your network configuration is invalid'
8
+ end
5
9
  end
6
10
  end
7
11
  end
@@ -1,7 +1,11 @@
1
- module ::Bcome::Exception
2
- class InvalidNetworkDriverType < ::Bcome::Exception::Base
3
- def message_prefix
4
- 'Invalid network driver type'
1
+ # frozen_string_literal: true
2
+
3
+ module Bcome
4
+ module Exception
5
+ class InvalidNetworkDriverType < ::Bcome::Exception::Base
6
+ def message_prefix
7
+ 'Invalid network driver type'
8
+ end
5
9
  end
6
10
  end
7
11
  end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Bcome
4
+ module Exception
5
+ class InvalidPortForwardRequest < ::Bcome::Exception::Base
6
+ def message_prefix
7
+ 'Invalid Port Forward request'
8
+ end
9
+ end
10
+ end
11
+ end
@@ -1,7 +1,11 @@
1
- module ::Bcome::Exception
2
- class InvalidProxyConfig < ::Bcome::Exception::Base
3
- def message_prefix
4
- 'Invalid proxy config'
1
+ # frozen_string_literal: true
2
+
3
+ module Bcome
4
+ module Exception
5
+ class InvalidProxyConfig < ::Bcome::Exception::Base
6
+ def message_prefix
7
+ 'Invalid proxy config'
8
+ end
5
9
  end
6
10
  end
7
11
  end
@@ -1,7 +1,11 @@
1
- module ::Bcome::Exception
2
- class InvalidRegexpMatcherInRegistry < ::Bcome::Exception::Base
3
- def message_prefix
4
- 'Invalid regex matcher in registry '
1
+ # frozen_string_literal: true
2
+
3
+ module Bcome
4
+ module Exception
5
+ class InvalidRegexpMatcherInRegistry < ::Bcome::Exception::Base
6
+ def message_prefix
7
+ 'Invalid regex matcher in registry '
8
+ end
5
9
  end
6
10
  end
7
11
  end
@@ -1,7 +1,11 @@
1
- module ::Bcome::Exception
2
- class InvalidRegistryArgumentType < ::Bcome::Exception::Base
3
- def message_prefix
4
- 'Invalid registry argument type'
1
+ # frozen_string_literal: true
2
+
3
+ module Bcome
4
+ module Exception
5
+ class InvalidRegistryArgumentType < ::Bcome::Exception::Base
6
+ def message_prefix
7
+ 'Invalid registry argument type'
8
+ end
5
9
  end
6
10
  end
7
11
  end
@@ -1,7 +1,11 @@
1
- module Bcome::Exception
2
- class InvalidRegistryCommandNameLength < ::Bcome::Exception::Base
3
- def message_prefix
4
- 'Invalid registry command name length: '
1
+ # frozen_string_literal: true
2
+
3
+ module Bcome
4
+ module Exception
5
+ class InvalidRegistryCommandNameLength < ::Bcome::Exception::Base
6
+ def message_prefix
7
+ 'Invalid registry command name length: '
8
+ end
5
9
  end
6
10
  end
7
11
  end
@@ -1,7 +1,11 @@
1
- module ::Bcome::Exception
2
- class InvalidRegistryDataConfig < ::Bcome::Exception::Base
3
- def message_prefix
4
- 'Invalid config in registry file '
1
+ # frozen_string_literal: true
2
+
3
+ module Bcome
4
+ module Exception
5
+ class InvalidRegistryDataConfig < ::Bcome::Exception::Base
6
+ def message_prefix
7
+ 'Invalid config in registry file '
8
+ end
5
9
  end
6
10
  end
7
11
  end
@@ -1,7 +1,11 @@
1
- module Bcome::Exception
2
- class InvalidRestrictionKeyInRegistry < ::Bcome::Exception::Base
3
- def message_prefix
4
- 'Invalid restriction key in registry: '
1
+ # frozen_string_literal: true
2
+
3
+ module Bcome
4
+ module Exception
5
+ class InvalidRestrictionKeyInRegistry < ::Bcome::Exception::Base
6
+ def message_prefix
7
+ 'Invalid restriction key in registry: '
8
+ end
5
9
  end
6
10
  end
7
11
  end
@@ -1,7 +1,11 @@
1
- module Bcome::Exception
2
- class InvalidSshConfig < ::Bcome::Exception::Base
3
- def message_prefix
4
- 'Invalid Ssh Config'
1
+ # frozen_string_literal: true
2
+
3
+ module Bcome
4
+ module Exception
5
+ class InvalidSshConfig < ::Bcome::Exception::Base
6
+ def message_prefix
7
+ 'Invalid Ssh Config'
8
+ end
5
9
  end
6
10
  end
7
11
  end
@@ -1,7 +1,11 @@
1
- module Bcome::Exception
2
- class InventoriesCannotHaveSubViews < ::Bcome::Exception::Base
3
- def message_prefix
4
- "You can't configure an inventory with subviews"
1
+ # frozen_string_literal: true
2
+
3
+ module Bcome
4
+ module Exception
5
+ class InventoriesCannotHaveSubViews < ::Bcome::Exception::Base
6
+ def message_prefix
7
+ "You can't configure an inventory with subviews"
8
+ end
5
9
  end
6
10
  end
7
11
  end
@@ -1,7 +1,11 @@
1
- module ::Bcome::Exception
2
- class MalformedCommandLineArguments < ::Bcome::Exception::Base
3
- def message_prefix
4
- 'Malformed command line arguments'
1
+ # frozen_string_literal: true
2
+
3
+ module Bcome
4
+ module Exception
5
+ class MalformedCommandLineArguments < ::Bcome::Exception::Base
6
+ def message_prefix
7
+ 'Malformed command line arguments'
8
+ end
5
9
  end
6
10
  end
7
11
  end
@@ -1,7 +1,11 @@
1
- module ::Bcome::Exception
2
- class MethodInvocationRequiresParameter < ::Bcome::Exception::Base
3
- def message_prefix
4
- 'Method invocation requires parameter: '
1
+ # frozen_string_literal: true
2
+
3
+ module Bcome
4
+ module Exception
5
+ class MethodInvocationRequiresParameter < ::Bcome::Exception::Base
6
+ def message_prefix
7
+ 'Method invocation requires parameter: '
8
+ end
5
9
  end
6
10
  end
7
11
  end
@@ -1,7 +1,11 @@
1
- module ::Bcome::Exception
2
- class MethodNameConflictInRegistry < ::Bcome::Exception::Base
3
- def message_prefix
4
- 'Method name conflict in registry. The following console_command name in your registry conflicts with either a reserved bcome method name, or another method name in your registry: '
1
+ # frozen_string_literal: true
2
+
3
+ module Bcome
4
+ module Exception
5
+ class MethodNameConflictInRegistry < ::Bcome::Exception::Base
6
+ def message_prefix
7
+ 'Method name conflict in registry. The following console_command name in your registry conflicts with either a reserved bcome method name, or another method name in your registry: '
8
+ end
5
9
  end
6
10
  end
7
11
  end
@@ -1,7 +1,11 @@
1
- module Bcome::Exception
2
- class MissingArgumentForRegistryCommand < ::Bcome::Exception::Base
3
- def message_prefix
4
- 'Cannot find argument for registry command in either your defaults or your supplied arguments'
1
+ # frozen_string_literal: true
2
+
3
+ module Bcome
4
+ module Exception
5
+ class MissingArgumentForRegistryCommand < ::Bcome::Exception::Base
6
+ def message_prefix
7
+ 'Cannot find argument for registry command in either your defaults or your supplied arguments'
8
+ end
5
9
  end
6
10
  end
7
11
  end
@@ -1,7 +1,11 @@
1
- module Bcome::Exception
2
- class MissingDescriptionOnView < ::Bcome::Exception::Base
3
- def message_prefix
4
- 'One of your views is missing a description field'
1
+ # frozen_string_literal: true
2
+
3
+ module Bcome
4
+ module Exception
5
+ class MissingDescriptionOnView < ::Bcome::Exception::Base
6
+ def message_prefix
7
+ 'One of your views is missing a description field'
8
+ end
5
9
  end
6
10
  end
7
11
  end
@@ -1,7 +1,11 @@
1
- module ::Bcome::Exception
2
- class MissingExecuteOnRegistryObject < ::Bcome::Exception::Base
3
- def message_prefix
4
- "Registry orchestration object is missing an 'execute' method for registry class "
1
+ # frozen_string_literal: true
2
+
3
+ module Bcome
4
+ module Exception
5
+ class MissingExecuteOnRegistryObject < ::Bcome::Exception::Base
6
+ def message_prefix
7
+ "Registry orchestration object is missing an 'execute' method for registry class "
8
+ end
5
9
  end
6
10
  end
7
11
  end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Bcome
4
+ module Exception
5
+ class MissingGcpAuthenticationScheme < ::Bcome::Exception::Base
6
+ def message_prefix
7
+ 'Missing GCP authentication scheme'
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Bcome
4
+ module Exception
5
+ class MissingGcpServiceScopes < ::Bcome::Exception::Base
6
+ def message_prefix
7
+ 'Missing gcp service scopes'
8
+ end
9
+ end
10
+ end
11
+ end