Skip to content

Commit

Permalink
update release_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
katjacresanti committed Sep 4, 2024
1 parent 82948c9 commit 0a09911
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
7 changes: 6 additions & 1 deletion lib/egads/command/extract.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,12 @@ def do_extract(path)

# Directory created upon successful extraction
def release_dir
RemoteConfig.release_dir(sha)
base_dir = RemoteConfig.release_dir(sha)
if options[:deployment_id]
deployment_id_value = deployment_id
return "#{base_dir}_#{deployment_id_value}" if deployment_id_value
end
base_dir
end

# Directory where in-progress extraction occurs
Expand Down
8 changes: 5 additions & 3 deletions lib/egads/command/release.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ def trim

def dir
base_dir = RemoteConfig.release_dir(sha)
deployment_id_value = deployment_id if options[:deployment_id]

deployment_id_value ? "#{base_dir}_#{deployment_id_value}" : base_dir
if options[:deployment_id]
deployment_id_value = deployment_id
return "#{base_dir}_#{deployment_id_value}" if deployment_id_value
end
base_dir
end

def release_to
Expand Down
8 changes: 5 additions & 3 deletions lib/egads/command/stage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,11 @@ def mark_as_staged

def dir
base_dir = RemoteConfig.release_dir(sha)
deployment_id_value = deployment_id if options[:deployment_id]

deployment_id_value ? "#{base_dir}_#{deployment_id_value}" : base_dir
if options[:deployment_id]
deployment_id_value = deployment_id
return "#{base_dir}_#{deployment_id_value}" if deployment_id_value
end
base_dir
end

def stage_flag_path
Expand Down

0 comments on commit 0a09911

Please sign in to comment.