Module: Expedite

Extended by:
Syntax
Defined in:
lib/expedite.rb,
lib/expedite/cli.rb,
lib/expedite/env.rb,
lib/expedite/hooks.rb,
lib/expedite/agents.rb,
lib/expedite/errors.rb,
lib/expedite/syntax.rb,
lib/expedite/actions.rb,
lib/expedite/signals.rb,
lib/expedite/version.rb,
lib/expedite/cli/stop.rb,
lib/expedite/protocol.rb,
lib/expedite/cli/rails.rb,
lib/expedite/cli/server.rb,
lib/expedite/cli/status.rb,
lib/expedite/action/boot.rb,
lib/expedite/client/base.rb,
lib/expedite/client/exec.rb,
lib/expedite/action/block.rb,
lib/expedite/server/agent.rb,
lib/expedite/client/invoke.rb,
lib/expedite/failsafe_thread.rb,
lib/expedite/server/agent_pool.rb,
lib/expedite/server/controller.rb,
lib/expedite/client/agent_proxy.rb,
lib/expedite/server/agent_manager.rb,
lib/expedite/server/application_manager.rb

Defined Under Namespace

Modules: Action, Cli, Client, Hooks, Protocol, Server, Signals, Syntax Classes: Actions, Agent, AgentNotFoundError, Agents, CommandNotFound, Env, Error, InvokeError, UnknownError

Constant Summary collapse

VERSION =
'0.2.4'

Class Method Summary collapse

Methods included from Syntax

define

Class Method Details

.agentObject

Returns a client to dispatch actions to the specified agent

Parameters:

  • name (String)

    Name of the agent that we want to talk to

  • env (Expedite::Env)

    Defaults to an environment pointing to the current directory



11
12
13
# File 'lib/expedite.rb', line 11

def self.agent(name, env: Env.new)
  Client::AgentProxy.new(name, env: env)
end

.appObject



21
22
23
# File 'lib/expedite/server/agent.rb', line 21

def self.app
  @app
end

.app=(app) ⇒ Object



18
19
20
# File 'lib/expedite/server/agent.rb', line 18

def self.app=(app)
  @app = app
end

.failsafe_threadObject



6
7
8
9
10
11
12
13
# File 'lib/expedite/failsafe_thread.rb', line 6

def failsafe_thread
  Thread.new {
    begin
      yield
    rescue
    end
  }
end