Class: Laborantin::Commands::LoadResults

Inherits:
Laborantin::Command show all
Defined in:
lib/laborantin/runner/commands/load_results.rb

Constant Summary collapse

VERSIONS =
['0.0.20']

Instance Attribute Summary

Attributes inherited from Laborantin::Command

#args, #opts, #runner

Attributes included from Metaprog::Completeable

#completion_block

Instance Method Summary collapse

Methods inherited from Laborantin::Command

describe, each, execute, inherited, #initialize, option, plumbery!, plumbery?, porcelain?, #puts, #run

Methods included from Metaprog::Completeable

#complete, #completion_propositions_iterating_on

Constructor Details

This class inherits a constructor from Laborantin::Command

Instance Method Details

#keep_env?(e, classes) ⇒ Boolean

Returns:

  • (Boolean)


93
94
95
96
97
# File 'lib/laborantin/runner/commands/load_results.rb', line 93

def keep_env?(e, classes)
  (classes[:envs].find{|k| e.is_a? k}) and
  ((opts[:successful_only] ? e.successful? : true) and
   (opts[:failed_only] ? e.failed? : true))
end