Class: OsCtl::Image::Cli::Command
- Inherits:
-
Lib::Cli::Command
- Object
- Lib::Cli::Command
- OsCtl::Image::Cli::Command
- Defined in:
- lib/osctl/image/cli/command.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(global_opts, opts, args) ⇒ Command
constructor
A new instance of Command.
Constructor Details
Class Method Details
.run(klass, method) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/osctl/image/cli/command.rb', line 5 def self.run(klass, method) proc do |global_opts, opts, args| cmd = klass.new(global_opts, opts, args) cmd.method(method).call end end |