class Cumuli::CLI::RemoteCommander
Attributes
dir[R]
raw_command[R]
Public Class Methods
new(command, dir)
click to toggle source
# File lib/cumuli/cli/remote_commander.rb, line 6 def initialize(command, dir) @raw_command = command @dir = dir end
Public Instance Methods
command()
click to toggle source
# File lib/cumuli/cli/remote_commander.rb, line 11 def command Commander.new(raw_command).build end
perform()
click to toggle source
# File lib/cumuli/cli/remote_commander.rb, line 15 def perform Dir.chdir(dir) do Terminal.new(command).spawn end end