Module: SameBoat

Defined in:
lib/same_boat.rb,
lib/same_boat/crew.rb,
lib/same_boat/crews.rb,
lib/same_boat/tasks.rb,
lib/same_boat/version.rb

Defined Under Namespace

Classes: Crew, Crews, Tasks

Constant Summary collapse

DEFAULT_JOURNAL =
'.same_boat.journal'.freeze
DEFAULT_CREWS =
'.env*'.freeze
VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.accept(crews, journal_path:) ⇒ Object



10
11
12
# File 'lib/same_boat.rb', line 10

def self.accept(crews, journal_path:)
  Crews.new(crews, journal_path: journal_path)
end

.build(crew_paths:, journal_path:) ⇒ Object



14
15
16
17
# File 'lib/same_boat.rb', line 14

def self.build(crew_paths:, journal_path:)
  crews = crew_paths.map { |path| Crew.new(path) }
  accept(crews, journal_path: journal_path)
end