Skip to content

Commit

Permalink
1712805493
Browse files Browse the repository at this point in the history
  • Loading branch information
azimux committed Apr 11, 2024
1 parent eaa0bdf commit 184a730
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GIT
remote: foobara
revision: 8d32b79146ce606cdadf33dc8493bdf1595647f9
revision: 277d55c344257270e4101ffcf7be7483e7b16cd3
branch: main
specs:
foobara (0.0.1)
Expand Down
12 changes: 8 additions & 4 deletions src/foobara/remote_imports/import_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,15 @@ def build_errors
end

def build_command
return
# TODO: actually do something
base_url = root_manifest.metadata["url"].gsub(/\/manifest$/, "")

RemoteCommand.subclass(
url:,
command_manifest: manifest_to_import
url: "#{base_url}/run/#{manifest_to_import.reference}",
description: manifest_to_import.description,
inputs_type: manifest_to_import.inputs_type,
possible_errors: manifest_to_import.possible_errors,
reference: manifest_to_import.reference,
result_type: manifest_to_import.result_type
)
end
end
Expand Down

0 comments on commit 184a730

Please sign in to comment.