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.12.3 lib/secrets_cli/prompts/secrets_storage_key.rb
secrets_cli-1.13.0.beta lib/secrets_cli/prompts/secrets_storage_key.rb
secrets_cli-1.12.2 lib/secrets_cli/prompts/secrets_storage_key.rb
secrets_cli-1.12.1 lib/secrets_cli/prompts/secrets_storage_key.rb
secrets_cli-1.11.0 lib/secrets_cli/prompts/secrets_storage_key.rb
secrets_cli-1.10.0 lib/secrets_cli/prompts/secrets_storage_key.rb
secrets_cli-1.9.0 lib/secrets_cli/prompts/secrets_storage_key.rb
secrets_cli-1.8.0 lib/secrets_cli/prompts/secrets_storage_key.rb
secrets_cli-1.7.0 lib/secrets_cli/prompts/secrets_storage_key.rb
secrets_cli-1.6.0 lib/secrets_cli/prompts/secrets_storage_key.rb
secrets_cli-1.5.0 lib/secrets_cli/prompts/secrets_storage_key.rb
secrets_cli-1.4.2 lib/secrets_cli/prompts/secrets_storage_key.rb
secrets_cli-1.4.1 lib/secrets_cli/prompts/secrets_storage_key.rb
secrets_cli-1.4.0 lib/secrets_cli/prompts/secrets_storage_key.rb
secrets_cli-1.3.3 lib/secrets_cli/prompts/secrets_storage_key.rb
secrets_cli-1.3.2 lib/secrets_cli/prompts/secrets_storage_key.rb
secrets_cli-1.3.1 lib/secrets_cli/prompts/secrets_storage_key.rb
secrets_cli-1.3.0 lib/secrets_cli/prompts/secrets_storage_key.rb
secrets_cli-1.2.0 lib/secrets_cli/prompts/secrets_storage_key.rb
secrets_cli-1.1.0 lib/secrets_cli/prompts/secrets_storage_key.rb