Sha256: 201168b73364126d6dbddbe6ba861b4c3e651d8da783b063aaeedd6d15589c9b

Contents?: true

Size: 519 Bytes

Versions: 14

Compression:

Stored size: 519 Bytes

Contents

module SecretsCli
  module Vault
    class Base
      include SecretsCli::Helpers

      attr_reader :options

      def initialize(options)
        @options = options
      end

      def call
        options.verbose ? prompt.ok(command) : command
      rescue => exception
        error!(exception.message)
      end

      private

      def command
        fail NotImplementedError
      end

      def secrets_full_storage_key
        File.join(secrets_storage_key, config.environment)
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
secrets_cli-1.9.0 lib/secrets_cli/vault/base.rb
secrets_cli-1.8.0 lib/secrets_cli/vault/base.rb
secrets_cli-1.7.0 lib/secrets_cli/vault/base.rb
secrets_cli-1.6.0 lib/secrets_cli/vault/base.rb
secrets_cli-1.5.0 lib/secrets_cli/vault/base.rb
secrets_cli-1.4.2 lib/secrets_cli/vault/base.rb
secrets_cli-1.4.1 lib/secrets_cli/vault/base.rb
secrets_cli-1.4.0 lib/secrets_cli/vault/base.rb
secrets_cli-1.3.3 lib/secrets_cli/vault/base.rb
secrets_cli-1.3.2 lib/secrets_cli/vault/base.rb
secrets_cli-1.3.0 lib/secrets_cli/vault/base.rb
secrets_cli-1.2.0 lib/secrets_cli/vault/base.rb
secrets_cli-1.1.0 lib/secrets_cli/vault/base.rb
secrets_cli-1.0.0 lib/secrets_cli/vault/base.rb