Module: Wakame::Command

Defined Under Namespace

Classes: ActionStatus, Actor, AgentStatus, CloneService, 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



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

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

Instance Method Details

#options=(path) ⇒ Object



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

def options=(path)
  @options = path
end

#paramsObject Also known as: options



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

def params
  @options
end

#runObject



29
30
# File 'lib/wakame/command.rb', line 29

def run
end