Module: Wakame::Cli::Subcommand
- Included in:
- ActionStatus, AgentStatus, ImportClusterConfig, LaunchCluster, LaunchVm, MigrateService, PropagateResource, PropagateService, ReloadService, ShutdownCluster, ShutdownVm, StartService, Status, StopService
- Defined in:
- lib/wakame/runner/administrator_command.rb
Defined Under Namespace
Classes: ActionStatus, AgentStatus, CommandArgumentError, ImportClusterConfig, LaunchCluster, LaunchVm, MigrateService, PropagateResource, PropagateService, ReloadService, ShutdownCluster, ShutdownVm, StartService, Status, StopService
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.included(klass) ⇒ Object
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
|
# File 'lib/wakame/runner/administrator_command.rb', line 197
def self.included(klass)
klass.class_eval {
class << self
def command_name
@command_name ||= Util.snake_case(self.to_s.split('::').last)
end
def command_name=(name)
@command_name=name
end
def summary
@summary
end
def summary=(summary)
@summary=summary
end
end
}
end
|
Instance Method Details
#create_parser(args, &blk) ⇒ Object
229
230
231
232
233
234
235
|
# File 'lib/wakame/runner/administrator_command.rb', line 229
def create_parser(args, &blk)
parser = OptionParser.new { |opts|
blk.call(opts) if blk
}
parser.order!(args)
parser
end
|
#parse(args) ⇒ Object
219
220
|
# File 'lib/wakame/runner/administrator_command.rb', line 219
def parse(args)
end
|
#print_result ⇒ Object
225
226
|
# File 'lib/wakame/runner/administrator_command.rb', line 225
def print_result()
end
|
#run(requester) ⇒ Object
222
223
|
# File 'lib/wakame/runner/administrator_command.rb', line 222
def run(requester)
end
|