Sha256: 2cb4e9f9b4877f9e0d995ee37f73f30bce6d5a77478f455deffdda09cb59593f
Contents?: true
Size: 868 Bytes
Versions: 5
Compression:
Stored size: 868 Bytes
Contents
desc "Internal hobo debugging tools" hidden true namespace 'self' do desc "Tasks for debugging hobo" namespace 'debug' do desc "Display project paths" project_only task "paths" do Hobo.ui.info "<%=color('Project path:', :green)%> " + Hobo.project_path { :gemfile => "*Gemfile", :vagrantfile => "*Vagrantfile", :cheffile => "*Cheffile", :berksfile => "*Berksfile", :'composer.json' => "composer.json" }.each do |k,v| path = nil locate v do |file, full_file| path = full_file end Hobo.ui.info "<%=color('#{k.to_s}:', :green) %> #{path.nil? ? "none" : path}" end end desc "Locate" project_only task "locate", [ :arg ] do |task, args| locate args[:arg] do |file, full_file| puts full_file end end end end
Version data entries
5 entries across 5 versions & 1 rubygems