Class: Milieu::CLI::Command::Dump

Inherits:
Dry::CLI::Command
  • Object
show all
Defined in:
lib/milieu/cli/command/dump.rb

Instance Method Summary collapse

Instance Method Details

#call(path: ".") ⇒ Object



13
14
15
16
17
18
19
20
# File 'lib/milieu/cli/command/dump.rb', line 13

def call(path: ".", **)
  @schema_file = File.join(path, ".milieu", "schema.rb")
  unless File.exist?(@schema_file)
    warn "Could not find schema.rb in your Milieu workspace.\n"
    return
  end
  export_env_file
end