Class: SecretsManager::Cli::Base

Inherits:
Object
  • Object
show all
Includes:
Helpers
Defined in:
lib/secrets_manager/cli/base.rb

Direct Known Subclasses

Pull

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helpers

#write_to_file

Constructor Details

#initialize(options) ⇒ Base

Returns a new instance of Base.



12
13
14
15
# File 'lib/secrets_manager/cli/base.rb', line 12

def initialize(options)
  @options = options
  @client = SecretsManager::Client.new
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



10
11
12
# File 'lib/secrets_manager/cli/base.rb', line 10

def client
  @client
end

Instance Method Details

#runObject



17
18
19
20
# File 'lib/secrets_manager/cli/base.rb', line 17

def run
  config.init
  execute
end