Class: Grifork::Executor::Local
- Inherits:
-
Object
- Object
- Grifork::Executor::Local
- Includes:
- Grifork::Executable
- Defined in:
- lib/grifork/executor/local.rb
Instance Method Summary collapse
-
#initialize(type, &task) ⇒ Local
constructor
Initialize with task.
-
#run ⇒ Object
Run the task.
Methods included from Grifork::Executable
#rsync, #rsync_remote, #sh, #ssh
Methods included from Loggable
Methods included from Configured
Constructor Details
#initialize(type, &task) ⇒ Local
Initialize with task
6 7 8 9 |
# File 'lib/grifork/executor/local.rb', line 6 def initialize(type, &task) @type = type @task = task end |
Instance Method Details
#run ⇒ Object
Run the task
12 13 14 |
# File 'lib/grifork/executor/local.rb', line 12 def run instance_eval(&@task) end |