Module: Runfile

Defined in:
lib/runfile/dsl.rb,
lib/runfile/exec.rb,
lib/runfile/setup.rb,
lib/runfile/action.rb,
lib/runfile/runner.rb,
lib/runfile/version.rb,
lib/runfile/settings.rb,
lib/runfile/docopt_helper.rb,
lib/runfile/runfile_helper.rb

Overview

This file defines all the commands supported in a Runfile. All commands are immediately handed over to the Runner instance for handling.

Defined Under Namespace

Modules: DSL, SettingsMixin Classes: Action, DocoptHelper, ExecHandler, RunfileHelper, Runner, Settings

Constant Summary collapse

VERSION =
"0.10.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.pid_dirObject

Set the directory where PID files are stored when using ‘run_bg`

Runfile.pid_dir = 'tmp'


5
6
7
# File 'lib/runfile/setup.rb', line 5

def pid_dir
  @pid_dir
end

.quietObject

Disable echoing of the command when using ‘run` or `run!`

Runfile.quiet = true


9
10
11
# File 'lib/runfile/setup.rb', line 9

def quiet
  @quiet
end

Class Method Details

.setup {|_self| ... } ⇒ Object

You can also configure Runfile by providing a block:

Runfile.setup do |config|
  config.quiet = true
end

Yields:

  • (_self)

Yield Parameters:

  • _self (Runfile)

    the object that the method was called on



15
16
17
# File 'lib/runfile/setup.rb', line 15

def setup
  yield self
end