Module: Wakame::Command

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



6
7
8
9
10
11
12
13
14
15
# File 'lib/wakame/command.rb', line 6

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
    end
  }
end

Instance Method Details

#options=(path) ⇒ Object



17
18
19
# File 'lib/wakame/command.rb', line 17

def options=(path)
  @options = path
end

#paramsObject Also known as: options



21
22
23
# File 'lib/wakame/command.rb', line 21

def params
  @options
end

#runObject



26
27
# File 'lib/wakame/command.rb', line 26

def run
end