Class: ECSHelper::Command::ECRLogin
- Inherits:
-
Base
- Object
- Base
- ECSHelper::Command::ECRLogin
show all
- Defined in:
- lib/ecs_helper/command/ecr_login.rb
Instance Attribute Summary
Attributes inherited from Base
#client, #helper, #option_parser, #options, #type
Instance Method Summary
collapse
Methods inherited from Base
#application, #check_bin, #initialize, #printable?, #project, #validate
Methods included from Logging
#console, #error, #log
Instance Method Details
#auth_private ⇒ Object
22
23
24
25
|
# File 'lib/ecs_helper/command/ecr_login.rb', line 22
def auth_private
auth_cmd = helper.auth_private_cmd
auth_cmd.run
end
|
#cmd_option_parser ⇒ Object
5
6
7
8
9
10
11
|
# File 'lib/ecs_helper/command/ecr_login.rb', line 5
def cmd_option_parser
options = {}
parser = ::OptionParser.new do |opts|
opts.banner = "Usage: ecs_helper ecr_login"
end
[parser, options]
end
|
#required ⇒ Object
13
14
15
|
# File 'lib/ecs_helper/command/ecr_login.rb', line 13
def required
[]
end
|
#run ⇒ Object
17
18
19
20
|
# File 'lib/ecs_helper/command/ecr_login.rb', line 17
def run
log("Command", type)
log("Auth Private", auth_private)
end
|