Sha256: c81efdd3b3b8ab203deb85bae9bf90d9c8fbabbc457234d57f745bced376f484

Contents?: true

Size: 366 Bytes

Versions: 11

Compression:

Stored size: 366 Bytes

Contents

module Hanzo
  module Heroku
    class << self
      def available_labs
        Hanzo.run('heroku labs').each_line.to_a.reduce([]) 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

11 entries across 11 versions & 1 rubygems

Version Path
hanzo-1.1.0 lib/hanzo/heroku.rb
hanzo-1.0.2 lib/hanzo/heroku.rb
hanzo-1.0.1 lib/hanzo/heroku.rb
hanzo-1.0.0 lib/hanzo/heroku.rb
hanzo-0.6.2 lib/hanzo/heroku.rb
hanzo-0.6.1 lib/hanzo/heroku.rb
hanzo-0.6 lib/hanzo/heroku.rb
hanzo-0.5 lib/hanzo/heroku.rb
hanzo-0.4.5 lib/hanzo/heroku.rb
hanzo-0.4.4 lib/hanzo/heroku.rb
hanzo-0.4.3 lib/hanzo/heroku.rb