Class: DeepTest::Distributed::ShellEnvironment::SourceFileList

Inherits:
Object
  • Object
show all
Defined in:
lib/deep_test/distributed/shell_environment.rb

Instance Method Summary collapse

Constructor Details

#initialize(filenames) ⇒ SourceFileList

Returns a new instance of SourceFileList.



31
32
33
# File 'lib/deep_test/distributed/shell_environment.rb', line 31

def initialize(filenames)
  @filenames = filenames
end

Instance Method Details

#==(other) ⇒ Object



41
42
43
# File 'lib/deep_test/distributed/shell_environment.rb', line 41

def ==(other)
  filenames == other.filenames
end

#to_sObject



35
36
37
38
39
# File 'lib/deep_test/distributed/shell_environment.rb', line 35

def to_s
  "if" + 
  filenames.map {|f| " [[ -f #{f} ]]; then . #{f}; "}.join("elif") +
  "fi"
end