Sha256: 9a40ad4ef7935054dbd8cc8a89769ce1b626abe0506978e82ea98f64454ebf8a

Contents?: true

Size: 659 Bytes

Versions: 34

Compression:

Stored size: 659 Bytes

Contents

module Guard
  class Interactor

    SCOPE = Pry::CommandSet.new do
      create_command 'scope' do

        group 'Guard'
        description 'Scope Guard actions to groups and plugins.'

        banner <<-BANNER
          Usage: scope <scope>

          Set the global Guard scope.
        BANNER

        def process(*entries)
          scope, rest = ::Guard::Interactor.convert_scope(entries)

          if scope[:plugins].empty? && scope[:groups].empty?
            output.puts 'Usage: scope <scope>'
          else
            ::Guard.scope = scope
          end
        end

      end
    end

  end
end

Pry.commands.import ::Guard::Interactor::SCOPE

Version data entries

34 entries across 32 versions & 3 rubygems

Version Path
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/guard-2.6.1/lib/guard/commands/scope.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/guard-2.6.1/lib/guard/commands/scope.rb
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/guard-2.6.1/lib/guard/commands/scope.rb
guard-2.6.1 lib/guard/commands/scope.rb
guard-2.6.0 lib/guard/commands/scope.rb
guard-2.5.1 lib/guard/commands/scope.rb
guard-2.5.0 lib/guard/commands/scope.rb
guard-2.4.0 lib/guard/commands/scope.rb
guard-2.3.0 lib/guard/commands/scope.rb
guard-2.2.5 lib/guard/commands/scope.rb
guard-2.2.4 lib/guard/commands/scope.rb
guard-2.2.3 lib/guard/commands/scope.rb
guard-2.2.2 lib/guard/commands/scope.rb
guard-2.2.1 lib/guard/commands/scope.rb
guard-2.2.0 lib/guard/commands/scope.rb
guard-2.1.1 lib/guard/commands/scope.rb
guard-2.1.0 lib/guard/commands/scope.rb
guard-2.0.5 lib/guard/commands/scope.rb
guard-2.0.4 lib/guard/commands/scope.rb
guard-2.0.3 lib/guard/commands/scope.rb