Sha256: 9355ad62a9f28bf56825e6a0a818e8885538d1f1d8f6d34895fbe37893d733c2
Contents?: true
Size: 447 Bytes
Versions: 4
Compression:
Stored size: 447 Bytes
Contents
# frozen_string_literal: true module Lite module Command class Step attr_reader :command, :options def initialize(command, options) @command = command @options = options end def run?(cmd) if options[:if] Utils.call(cmd, options[:if]) elsif options[:unless] !Utils.call(cmd, options[:unless]) else true end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
lite-command-2.1.3 | lib/lite/command/step.rb |
lite-command-2.1.2 | lib/lite/command/step.rb |
lite-command-2.1.1 | lib/lite/command/step.rb |
lite-command-2.1.0 | lib/lite/command/step.rb |