Class: RDockerize::Commands::Base
- Inherits:
-
Object
- Object
- RDockerize::Commands::Base
- Defined in:
- lib/r_dockerize/commands/base.rb
Overview
Abstract class for all commands
Constant Summary collapse
- BASE_KEY =
Base key for access i18n templates
"r_dockerize"
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(args) ⇒ Base
constructor
A new instance of Base.
- #parse(args) ⇒ Object
- #run ⇒ Object
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
24 25 26 |
# File 'lib/r_dockerize/commands/base.rb', line 24 def parse(args) raise NotImplementedError end |
#run ⇒ Object
20 21 22 |
# File 'lib/r_dockerize/commands/base.rb', line 20 def run raise NotImplementedError end |