Class: DeepTest::Distributed::ShellEnvironment::SourceFileList
- Inherits:
-
Object
- Object
- DeepTest::Distributed::ShellEnvironment::SourceFileList
- Defined in:
- lib/deep_test/distributed/shell_environment.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(filenames) ⇒ SourceFileList
constructor
A new instance of SourceFileList.
- #to_s ⇒ Object
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_s ⇒ Object
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 |