Sha256: 0613956088e360ceb5b88fa52d1f1947e4e95f868cc56635809263c9709ca8b1

Contents?: true

Size: 554 Bytes

Versions: 6

Compression:

Stored size: 554 Bytes

Contents

require_relative 'config_command'

module WhirledPeas
  module Command
    class Frames < ConfigCommand
      def self.description
        'Print out list of frames generated by application'
      end

      def start
        super

        require 'whirled_peas/animator/debug_consumer'
        require 'whirled_peas/animator/producer'

        Animator::Producer.produce(
          Animator::DebugConsumer.new, WhirledPeas.config.refresh_rate
        ) do |producer|
          config.application.start(producer)
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
whirled_peas-0.11.1 lib/whirled_peas/command/frames.rb
whirled_peas-0.11.0 lib/whirled_peas/command/frames.rb
whirled_peas-0.10.0 lib/whirled_peas/command/frames.rb
whirled_peas-0.9.1 lib/whirled_peas/command/frames.rb
whirled_peas-0.9.0 lib/whirled_peas/command/frames.rb
whirled_peas-0.8.0 lib/whirled_peas/command/frames.rb