Skip to content
Snippets Groups Projects
Commit 95cb310e authored by Jacob Vosmaer's avatar Jacob Vosmaer
Browse files

Avoid using 'patch' as a local variable name

The omnibus-ruby DSL has a method named 'patch'. This makes it a bad
idea to define a variable named 'patch' in a software definition that
uses the DSL.
parent 4bd6f027
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -57,10 +57,10 @@ build do
# database at this point so that is a problem. This bug is fixed in
# acts-as-taggable-on 3.0.0 by
# https://github.com/mbleigh/acts-as-taggable-on/commit/ad02dc9bb24ec8e1e79e7e35e2d4bb5910a66d8e
patch = "#{Omnibus.project_root}/config/patches/acts-as-taggable-on-ad02dc9bb24ec8e1e79e7e35e2d4bb5910a66d8e.diff"
aato_patch = "#{Omnibus.project_root}/config/patches/acts-as-taggable-on-ad02dc9bb24ec8e1e79e7e35e2d4bb5910a66d8e.diff"
# To make this idempotent, we apply the patch (in case this is a first run) or
# we revert and re-apply the patch (if this is a second or later run).
command "git apply #{patch} || (git apply -R #{patch} && git apply #{patch})",
command "git apply #{aato_patch} || (git apply -R #{aato_patch} && git apply #{aato_patch})",
:cwd => "#{install_dir}/embedded/service/gem/ruby/1.9.1/gems/acts-as-taggable-on-2.4.1"
rake "assets:precompile", :env => {"RAILS_ENV" => "production"}
# Tear down now that the assets:precompile is done.
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment