Class: CSD::Cmd

Inherits:
Object show all
Defined in:
lib/csd/commands.rb

Overview

Wrapping the CommandsInstance class

Constant Summary collapse

COMMANDS =
%w{ mkdir cd run replace copy }

Class Method Summary collapse

Class Method Details

.instanceObject



185
186
187
# File 'lib/csd/commands.rb', line 185

def self.instance
  @@instance ||= CommandsInstance.new
end

.method_missing(meth, *args, &block) ⇒ Object



189
190
191
# File 'lib/csd/commands.rb', line 189

def self.method_missing(meth, *args, &block)
  COMMANDS.include?(meth.to_s) ? instance.send(meth, *args, &block) : super
end