Class: OTerm::Executor::Cmd

Inherits:
Object
  • Object
show all
Defined in:
lib/oterm/executor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(target, op, summary, desc) ⇒ Cmd

Returns a new instance of Cmd.



134
135
136
137
138
139
140
141
142
143
# File 'lib/oterm/executor.rb', line 134

def initialize(target, op, summary, desc)
  @target = target
  @op = op
  @summary = summary
  if desc.nil?
    @desc = summary
  else
    @desc = desc.split("\n")
  end
end

Instance Attribute Details

#descObject

Returns the value of attribute desc.



132
133
134
# File 'lib/oterm/executor.rb', line 132

def desc
  @desc
end

#opObject

Returns the value of attribute op.



130
131
132
# File 'lib/oterm/executor.rb', line 130

def op
  @op
end

#summaryObject

Returns the value of attribute summary.



131
132
133
# File 'lib/oterm/executor.rb', line 131

def summary
  @summary
end

#targetObject

Returns the value of attribute target.



129
130
131
# File 'lib/oterm/executor.rb', line 129

def target
  @target
end