Class: Vaws::Aws::SsmDescriber
- Defined in:
- lib/vaws/aws/ssm_describer.rb
Instance Attribute Summary collapse
-
#term_table ⇒ Object
readonly
Returns the value of attribute term_table.
Instance Method Summary collapse
-
#initialize ⇒ SsmDescriber
constructor
A new instance of SsmDescriber.
- #set_basic_info ⇒ Object
Constructor Details
#initialize ⇒ SsmDescriber
Returns a new instance of SsmDescriber.
9 10 11 12 |
# File 'lib/vaws/aws/ssm_describer.rb', line 9 def initialize @ssm_client = ::Aws::SSM::Client.new @term_table = '' end |
Instance Attribute Details
#term_table ⇒ Object (readonly)
Returns the value of attribute term_table.
7 8 9 |
# File 'lib/vaws/aws/ssm_describer.rb', line 7 def term_table @term_table end |
Instance Method Details
#set_basic_info ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/vaws/aws/ssm_describer.rb', line 14 def set_basic_info rows = [] params = @ssm_client.describe_parameters({ max_results: 50 }) params.parameters.each do |param| name = param.name type = param.type version = param.version last_modify_date = param.last_modified_date rows << [name, type, version, last_modify_date] end @term_table = Terminal::Table.new :headings => ['Path', 'Type', 'Version', 'LastModifyDate'], :rows => rows.sort end |