Sha256: fe2a3c7b5af64df5a02200d8b752501a0ee581b615369393c1345c4d36e99d3e
Contents?: true
Size: 369 Bytes
Versions: 2
Compression:
Stored size: 369 Bytes
Contents
module Hanzo module Heroku class << self def available_labs `bundle exec heroku labs`.each_line.to_a.inject([]) do |memo, line| if line = /^\[\s\]\s+(?<name>\w+)\s+(?<description>.+)$/.match(line) memo << [line[:name], line[:description]] else memo end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hanzo-0.1.2 | lib/hanzo/heroku.rb |
hanzo-0.1.0 | lib/hanzo/heroku.rb |