summaryrefslogtreecommitdiff
path: root/tasks
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-08-29 17:17:23 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2018-08-29 17:17:23 -0700
commit09bc76d86564ee84461498d1c8be99f957afbc7a (patch)
treef97b94e8b682af90be6ab6a750e9fee6c76afc11 /tasks
parent351b5d9d59e7ce46508107d6c51fe338c0ced955 (diff)
downloadchef-09bc76d86564ee84461498d1c8be99f957afbc7a.tar.gz
cleanup old rake taskslcg/nuke-shitty-rake-tasks
we're calling scripts to call rake tasks to call scripts to call rake tasks to mostly execute shellcodes. this gets rid of at least 2 levels of indirection. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'tasks')
-rw-r--r--tasks/dependencies.rb24
1 files changed, 2 insertions, 22 deletions
diff --git a/tasks/dependencies.rb b/tasks/dependencies.rb
index 4ffb38cbef..ccdb8389ad 100644
--- a/tasks/dependencies.rb
+++ b/tasks/dependencies.rb
@@ -20,24 +20,9 @@ require "bundler"
desc "Tasks to update and check dependencies"
namespace :dependencies do
- # Running update_ci on your local system wont' work. The best way to update
- # dependencies locally is by running the dependency update script.
- desc "Update all dependencies. dependencies:update to update as little as possible."
- task :update do |t, rake_args|
- # FIXME: probably broken, and needs less indirection
- system((File.join(Dir.pwd, "ci", "dependency_update.sh")).to_s)
- end
-
- desc "Force update (when adding new gems to Gemfiles)"
- task :force_update do |t, rake_args|
- # FIXME: probably broken, and needs less indirection
- FileUtils.rm_f(File.join(Dir.pwd, ".bundle", "config"))
- system((File.join(Dir.pwd, "ci", "dependency_update.sh")).to_s)
- end
-
# Update all dependencies to the latest constraint-matching version
- desc "Update all dependencies. dependencies:update to update as little as possible (CI-only)."
- task update_ci: %w{
+ desc "Update all dependencies."
+ task update: %w{
dependencies:update_gemfile_lock
dependencies:update_omnibus_gemfile_lock
}
@@ -71,8 +56,3 @@ namespace :dependencies do
bundle_update_locked_multiplatform_task :update_omnibus_gemfile_lock, "omnibus"
end
-
-desc "Update all dependencies and check for outdated gems."
-task dependencies_ci: [ "dependencies:update_ci" ]
-task dependencies: [ "dependencies:update" ]
-task update: [ "dependencies:update" ]