Fix implicit connect / disconnect
This commit is contained in:
parent
4aa703bf98
commit
6960ad83b5
2 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ class Twenty::Command::Connect < Twenty::Command
|
|||
private
|
||||
|
||||
def run_command(options)
|
||||
path = options.path ? File.expand_path(options.path) : Dir.getwd
|
||||
path = File.realpath(options.path ? options.path : Dir.getwd)
|
||||
if File.exist?(path)
|
||||
project = Twenty::Project.create(
|
||||
name: File.basename(path),
|
||||
|
|
|
@ -16,7 +16,7 @@ class Twenty::Command::Disconnect < Twenty::Command
|
|||
private
|
||||
|
||||
def run_command(options)
|
||||
path = options.path ? File.expand_path(options.path) : Dir.getwd
|
||||
path = File.reapath(options.path ? options.path : Dir.getwd)
|
||||
Twenty::Project
|
||||
.where(path:)
|
||||
.first!
|
||||
|
|
Loading…
Reference in a new issue