Class: Molder::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/molder/command.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, config:, desc:, supervise: true, concurrent: true, examples: [], args:) ⇒ Command

Returns a new instance of Command.



5
6
7
8
9
10
11
12
13
# File 'lib/molder/command.rb', line 5

def initialize(name:, config:, desc:, supervise: true, concurrent: true, examples: [], args:)
  self.name       = name
  self.config     = config
  self.desc       = desc
  self.supervise  = supervise
  self.concurrent = concurrent
  self.examples   = examples
  self.args       = args
end

Instance Attribute Details

#argsObject

Returns the value of attribute args.



3
4
5
# File 'lib/molder/command.rb', line 3

def args
  @args
end

#concurrentObject

Returns the value of attribute concurrent.



3
4
5
# File 'lib/molder/command.rb', line 3

def concurrent
  @concurrent
end

#configObject

Returns the value of attribute config.



3
4
5
# File 'lib/molder/command.rb', line 3

def config
  @config
end

#descObject

Returns the value of attribute desc.



3
4
5
# File 'lib/molder/command.rb', line 3

def desc
  @desc
end

#examplesObject

Returns the value of attribute examples.



3
4
5
# File 'lib/molder/command.rb', line 3

def examples
  @examples
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/molder/command.rb', line 3

def name
  @name
end

#superviseObject

Returns the value of attribute supervise.



3
4
5
# File 'lib/molder/command.rb', line 3

def supervise
  @supervise
end