class Jisota::CommandScript
Part of the Script duck type
Stores a single shell command that can be executed
Attributes
command[RW]
Public Class Methods
new(command)
click to toggle source
# File lib/jisota/command_script.rb, line 9 def initialize(command) @command = command end
Public Instance Methods
execute(context)
click to toggle source
# File lib/jisota/command_script.rb, line 13 def execute(context) exit_code = context.command(command) exit_code == 0 end