Sha256: da4140ec4134823ae0476364505820fb467ceb1ae96cae31a48e2c458fd8f99d

Contents?: true

Size: 858 Bytes

Versions: 11

Compression:

Stored size: 858 Bytes

Contents

# required for async_queue_add
require "pry"
require "guard"

module Guard
  module Commands
    class All
      def self.import
        Pry::Commands.create_command "all" do
          group "Guard"
          description "Run all plugins."

          banner <<-BANNER
          Usage: all <scope>

          Run the Guard plugin `run_all` action.

          You may want to specify an optional scope to the action,
          either the name of a Guard plugin or a plugin group.
          BANNER

          def process(*entries)
            scopes, unknown = ::Guard::Interactor.convert_scope(entries)

            unless unknown.empty?
              output.puts "Unknown scopes: #{ unknown.join(", ") }"
              return
            end

            ::Guard.async_queue_add([:guard_run_all, scopes])
          end
        end
      end
    end
  end
end

Version data entries

11 entries across 7 versions & 1 rubygems

Version Path
guard-2.8.2 lib/guard/commands/all.rb.orig
guard-2.8.2 lib/guard/commands/all.rb
guard-2.8.1 lib/guard/commands/all.rb
guard-2.8.1 lib/guard/commands/all.rb.orig
guard-2.8.0 lib/guard/commands/all.rb
guard-2.8.0 lib/guard/commands/all.rb.orig
guard-2.7.3 lib/guard/commands/all.rb.orig
guard-2.7.3 lib/guard/commands/all.rb
guard-2.7.2 lib/guard/commands/all.rb
guard-2.7.1 lib/guard/commands/all.rb
guard-2.7.0 lib/guard/commands/all.rb