Updated help message

This commit is contained in:
Tristan Ancelet 2024-05-26 13:44:16 -05:00
parent 26d03ddfea
commit 6b9260af43

View File

@ -15,11 +15,11 @@ def usage
#{__FILE__} [ACTION <arg>] [<flags>]
Description:
This utlity is meant to be used to interact with & manage the filebucket on P4 nodes due to the
utility for that `puppet filebucket -l <action>` being nonfunctional.
This utlity is meant to be used to interact with & manage the filebucket in the same capacity as
the builtin filebucket utility. However, it does not handle any puppet tie ins.
This implements the same functionality (minus the puppet tie-in) and will allow the user to
search the filebucket and restore from it.
I created this due to the puppet filebucket utility in my companies P4 envrionments not
functioning
Actions:
search <term> : Search for bucket entries matching a portion of the filepath
@ -705,6 +705,7 @@ def delete_entry (bucket)
entry = bucket.entries[$CONFIG[:search_term]]
else
puts "BucketEntry[#{$CONFIG[:search_term]}] Does not exist. Please make sure you provided the correct hash value"
exit
end
puts "Corresponding Entry: #{entry.info}"