diff options
Diffstat (limited to 'lib/license/finder/ext/trash.rb')
| -rw-r--r-- | lib/license/finder/ext/trash.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/license/finder/ext/trash.rb b/lib/license/finder/ext/trash.rb new file mode 100644 index 0000000..76f16b1 --- /dev/null +++ b/lib/license/finder/ext/trash.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module LicenseFinder + class Trash + def active? + return if project_path.to_path.include?('/vendor/') + + project_path.join('vendor.conf').exist? + end + + def prepare + within_project_path do + tool_box.install(tool: :golang) + shell.execute([:go, :get, '-u', 'github.com/rancher/trash'], capture: false) + shell.execute([:asdf, :reshim], capture: false) + end + end + end +end |
