Sha256: 82d3f5f16d160274a674435dfb355bc7d584ebbadbb6d56d783ec6345ddeb4d5
Contents?: true
Size: 759 Bytes
Versions: 1
Compression:
Stored size: 759 Bytes
Contents
# frozen_string_literal: true module Executo module CommandDsl extend ActiveSupport::Concern include ActiveAttr::Model delegate :target, :command, :parameters, :feedback_interval, to: :class class_methods do def call(*args) new(*args).call end def target(value = nil) @target = value if value.present? @target end def command(value = nil) @command = value if value.present? @command end def parameters(value = nil) @parameters = value if value.present? @parameters || '' end def feedback_interval(value = nil) @feedback_interval = value if value.present? @feedback_interval || 10 end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
executo-0.3.12 | lib/executo/command_dsl.rb |