Class: Stax::SubCommand
- Inherits:
-
Base
- Object
- Thor
- Base
- Stax::SubCommand
show all
- Defined in:
- lib/stax/subcommand.rb
Direct Known Subclasses
Cmd::Acm, Cmd::Alb, Cmd::Apigw, Cmd::Asg, Cmd::Cloudfront, Cmd::Codebuild, Cmd::Codepipeline, Cmd::Dms, Cmd::DynamoDB, Cmd::Ec2, Cmd::Ecr, Cmd::Ecs, Cmd::Elb, Cmd::Emr, Cmd::Firehose, Cmd::Keypair, Cmd::Kms, Cmd::Lambda, Cmd::Logs, Cmd::Rds, Cmd::S3, Cmd::SecretsManager, Cmd::Sg, Cmd::Sqs, Cmd::Ssm
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.stax_info(*tasks) ⇒ Object
5
6
7
8
|
# File 'lib/stax/subcommand.rb', line 5
def stax_info(*tasks)
@stax_info_tasks ||= []
@stax_info_tasks += tasks
end
|
.stax_info_tasks ⇒ Object
10
11
12
|
# File 'lib/stax/subcommand.rb', line 10
def stax_info_tasks
@stax_info_tasks&.uniq
end
|
Instance Method Details
#info ⇒ Object
23
24
25
26
27
28
29
30
31
32
|
# File 'lib/stax/subcommand.rb', line 23
def info
self.class.stax_info_tasks&.each do |task|
begin
invoke task
puts "\n"
rescue NoMethodError => e
warn(e.message)
end
end
end
|