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



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

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

#make(tasks = []) ⇒ Object



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

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

#rake(tasks = []) ⇒ Object



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

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