class Nova::Remote::Fake::Commands
Manages running commands.
@abstract
Public Instance Methods
command_exists?(command)
click to toggle source
Checks to see if the command exists.
@abstract @note Does nothing. Always returns false since this is the
fake remote.
@param command [String] the command to check the existance
of.
@return [Boolean]
# File lib/nova/remote/fake/commands.rb, line 37 def command_exists?(command) false end
line(command, arguments = "", options = {})
click to toggle source
Creates a CommandLine with its default runner.
@abstract @note Does nothing. Since we’re a fake remote, we’ll
overwrite the backend with a fake one.
@see github.com/redjazz96/command-runner @param command [String] the command to run. @param arguments [String] the arguments to be passed to the
command.
@return [Command::Runner] the runner.
# File lib/nova/remote/fake/commands.rb, line 22 def line(command, arguments = "", options = {}) options.merge! :logger => Nova.logger c = Command::Runner.new(command, arguments, options) c.backend = Command::Runner::Backends::Fake.new c end