Class: Orefs::Planner::Step

Inherits:
Object
  • Object
show all
Defined in:
lib/orefs/planner.rb

Constant Summary

STATS =

op values

0
REMOVE =
1
COPY =
2
3
ERROR =
4
LOCAL =

location of master

true
REMOTE =
false

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Step) initialize(name, master, op)

A new instance of Step



285
286
287
288
289
# File 'lib/orefs/planner.rb', line 285

def initialize(name, master, op)
  @name = name
  @master = master
  @op = op
end

Instance Attribute Details

- (Object) master (readonly)

Returns the value of attribute master



282
283
284
# File 'lib/orefs/planner.rb', line 282

def master
  @master
end

- (Object) name (readonly)

Returns the value of attribute name



281
282
283
# File 'lib/orefs/planner.rb', line 281

def name
  @name
end

- (Object) op (readonly)

Returns the value of attribute op



283
284
285
# File 'lib/orefs/planner.rb', line 283

def op
  @op
end

Instance Method Details

- (Object) to_s



291
292
293
# File 'lib/orefs/planner.rb', line 291

def to_s()
  "<Step name=#{@name} master=#{@master ? 'LOCAL' : 'REMOTE'} op=#{['STATS', 'REMOVE', 'COPY', 'LINK', 'ERROR'][@op]}>"
end