Sha256: effb74d29f6ac71b8f2dada1680d1442d195620109f8e1046f9409d61b8698d9

Contents?: true

Size: 760 Bytes

Versions: 27

Compression:

Stored size: 760 Bytes

Contents

module Guard
  class Interactor

    RELOAD = Pry::CommandSet.new do
      create_command 'reload' do

        group 'Guard'
        description 'Reload all plugins.'

        banner <<-BANNER
          Usage: reload <scope>

          Run the Guard plugin `reload` 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, rest = ::Guard::Interactor.convert_scope(entries)

          if rest.empty?
            ::Guard.reload scopes
          else
            output.puts "Unknown scope #{ rest.join(', ') }"
          end
        end

      end
    end

  end
end

Pry.commands.import ::Guard::Interactor::RELOAD

Version data entries

27 entries across 25 versions & 2 rubygems

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