Module: SSHKit::CommandHelper

Included in:
Backend::Netssh, Backend::Printer
Defined in:
lib/sshkit/command.rb

Overview

Author:

  • Lee Hambley

Instance Method Summary collapse

Instance Method Details

#execute(command, args = []) ⇒ Object



18
19
20
# File 'lib/sshkit/command.rb', line 18

def execute(command, args=[])
  Command.new(command, args)
end

#make(tasks = []) ⇒ Object



14
15
16
# File 'lib/sshkit/command.rb', line 14

def make(tasks=[])
  execute :make, tasks
end

#rake(tasks = []) ⇒ Object



10
11
12
# File 'lib/sshkit/command.rb', line 10

def rake(tasks=[])
  execute :rake, tasks
end