Class: OsCtl::ExportFS::Cli::Command
- Inherits:
-
Lib::Cli::Command
- Object
- Lib::Cli::Command
- OsCtl::ExportFS::Cli::Command
- Defined in:
- lib/osctl/exportfs/cli/command.rb
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/exportfs/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 |