Class: SecretsCli::Check::Secrets
- Inherits:
-
Object
- Object
- SecretsCli::Check::Secrets
- Includes:
- Helpers
- Defined in:
- lib/secrets_cli/check/secrets.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(options) ⇒ Secrets
constructor
A new instance of Secrets.
Methods included from Helpers
#config, #error, #error!, #pastel, #print_verbose, #prompt
Constructor Details
#initialize(options) ⇒ Secrets
Returns a new instance of Secrets.
8 9 10 |
# File 'lib/secrets_cli/check/secrets.rb', line 8 def initialize() @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/secrets_cli/check/secrets.rb', line 6 def @options end |
Instance Method Details
#call ⇒ Object
12 13 14 15 16 |
# File 'lib/secrets_cli/check/secrets.rb', line 12 def call error! 'Missing .secrets' unless File.exist?('.secrets') error! 'Missing secrets_file' if missing_secret_file? error! 'Missing secrets_storage_key' if missing_secret_storage_key? end |