Class: RDockerize::Commands::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/r_dockerize/commands/base.rb

Overview

Abstract class for all commands

Direct Known Subclasses

Dco, Docker, Dockerize, Save

Constant Summary collapse

BASE_KEY =

Base key for access i18n templates

"r_dockerize"

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Base

Returns a new instance of Base.



16
17
18
# File 'lib/r_dockerize/commands/base.rb', line 16

def initialize(args)
  parse(args)
end

Class Method Details

.run(args) ⇒ Object



12
13
14
# File 'lib/r_dockerize/commands/base.rb', line 12

def self.run(args)
  new(args).run
end

Instance Method Details

#parse(args) ⇒ Object

Raises:

  • (NotImplementedError)


24
25
26
# File 'lib/r_dockerize/commands/base.rb', line 24

def parse(args)
  raise NotImplementedError
end

#runObject

Raises:

  • (NotImplementedError)


20
21
22
# File 'lib/r_dockerize/commands/base.rb', line 20

def run
  raise NotImplementedError
end