Sha256: b0e5e7531824594f6ede39d4cced4886ae5724a197f0fac8797ca76e4decd044

Contents?: true

Size: 307 Bytes

Versions: 24

Compression:

Stored size: 307 Bytes

Contents

module SecretsCli
  module Prompts
    class SecretsStorageKey
      include SecretsCli::Helpers

      def call
        prompt.ask('What will the secrets storage key be?', default: default)
      end

      private

      def default
        "rails/#{Dir.pwd.split('/').last}/"
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
secrets_cli-1.0.0 lib/secrets_cli/prompts/secrets_storage_key.rb
secrets_cli-0.4.0 lib/secrets_cli/prompts/secrets_storage_key.rb
secrets_cli-0.3.1 lib/secrets_cli/prompts/secrets_storage_key.rb
secrets_cli-0.3.0 lib/secrets_cli/prompts/secrets_storage_key.rb