Module: Wakame::Cli::Subcommand

Defined Under Namespace

Classes: ActionStatus, Actor, AgentStatus, CommandArgumentError, ControlService, DeployApplication, DeployConfig, 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
# File 'lib/wakame/runner/administrator_command.rb', line 197

def self.included(klass)
  klass.class_eval {
    class << self
      def command_name(name=nil)
        @command_name = name if name
        @command_name ||= Util.snake_case(self.to_s.split('::').last)
      end

      def summary(str=nil)
        @summary = str if str
        @summary
      end
    end
  }
end

Instance Method Details

#create_parser(args, &blk) ⇒ Object



223
224
225
226
227
228
229
# File 'lib/wakame/runner/administrator_command.rb', line 223

def create_parser(args, &blk)
  parser = OptionParser.new { |opts|
    blk.call(opts) if blk
  }
  parser.order!(args)
  parser
end

#parse(args) ⇒ Object



213
214
# File 'lib/wakame/runner/administrator_command.rb', line 213

def parse(args)
end


219
220
# File 'lib/wakame/runner/administrator_command.rb', line 219

def print_result()
end

#run(requester) ⇒ Object



216
217
# File 'lib/wakame/runner/administrator_command.rb', line 216

def run(requester)
end