Skip to content

Commit

Permalink
add only names to alltubes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ifiht committed Feb 11, 2024
1 parent e1efe67 commit 7245d3b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/manual.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
beanstalk = Beaneater.new("#{beanstalk_host}\:#{beanstalk_port}")
args = ARGV
tube = ARGV[0]
alltubes = beanstalk.tubes.all
alltubes = []
beanstalk.tubes.all.each do |t|
alltubes << t.name
end
puts alltubes.inspect
if args.length != 2
puts "this script requires two arguments."
Expand Down

0 comments on commit 7245d3b

Please sign in to comment.