Class: Ctrl::Commands::Base
- Inherits:
-
Object
- Object
- Ctrl::Commands::Base
- Includes:
- Virtus::Model
- Defined in:
- lib/ctrl/commands/base.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.perform(*opts) ⇒ Object
6 7 8 |
# File 'lib/ctrl/commands/base.rb', line 6 def self.perform(*opts) new(*opts).tap(&:perform) end |
Instance Method Details
#client ⇒ Object
10 11 12 |
# File 'lib/ctrl/commands/base.rb', line 10 def client @client ||= Aws::EC2::Resource.new end |
#perform ⇒ Object
14 15 16 |
# File 'lib/ctrl/commands/base.rb', line 14 def perform fail 'override #perform' end |