Class: DLDInternet::AWS::EC2::Instance_Types::Get

Inherits:
Thor
  • Object
show all
Defined in:
lib/dldinternet/aws/ec2/instance_types/get.rb

Overview

noinspection RubyParenthesesAfterMethodCallInspection

Instance Method Summary collapse

Instance Method Details

#load(path) ⇒ Object



21
22
23
24
25
26
27
# File 'lib/dldinternet/aws/ec2/instance_types/get.rb', line 21

def load(path)
  parse_options
  puts 'load instance types' if options[:verbose]

  it = load_ec2_instance_types(path)
  ap it
end

#save(path) ⇒ Object



30
31
32
33
34
35
36
# File 'lib/dldinternet/aws/ec2/instance_types/get.rb', line 30

def save(path)
  parse_options
  puts 'save instance types' if options[:verbose]

  it = get_ec2_instance_types()
  save_ec2_instance_types(path, it)
end