lib/shipit/task_commands.rb in shipit-engine-0.24.0 vs lib/shipit/task_commands.rb in shipit-engine-0.25.0

- old
+ new

@@ -33,11 +33,11 @@ 'ENVIRONMENT' => @stack.environment, 'BRANCH' => @stack.branch, 'SHIPIT_USER' => "#{@task.author.login} (#{normalized_name}) via Shipit", 'EMAIL' => @task.author.email, 'BUNDLE_PATH' => Rails.root.join('data', 'bundler').to_s, - 'SHIPIT_LINK' => permalink, + 'SHIPIT_LINK' => @task.permalink, 'LAST_DEPLOYED_SHA' => @stack.last_deployed_commit.sha, 'TASK_ID' => @task.id.to_s, 'IGNORED_SAFETIES' => @task.ignored_safeties? ? '1' : '0', 'GIT_COMMITTER_NAME' => @task.user&.name || Shipit.committer_name, 'GIT_COMMITTER_EMAIL' => @task.user&.email || Shipit.committer_email, @@ -77,12 +77,8 @@ if sub_directory = deploy_spec.directory.presence File.join(@task.working_directory, sub_directory) else @task.working_directory end - end - - def permalink - Shipit::Engine.routes.url_helpers.stack_task_url(@stack, @task) end end end