Class: ECSHelper::Command::ECRLogin

Inherits:
Base
  • Object
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

Constructor Details

This class inherits a constructor from ECSHelper::Command::Base

Instance Method Details

#auth_privateObject



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_parserObject



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

#requiredObject



13
14
15
# File 'lib/ecs_helper/command/ecr_login.rb', line 13

def required
  []
end

#runObject



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