Sha256: 65bb840570e51a3a753572223ce7600de27aa6e1e521d0278049423b5a1636bd
Contents?: true
Size: 473 Bytes
Versions: 4
Compression:
Stored size: 473 Bytes
Contents
# frozen_string_literal: true module Groundskeeper # Class to execute commands for other classes class Executable attr_reader :command @verbose = false class << self attr_writer :verbose end class << self attr_reader :verbose end def initialize(command) @command = command end def execute(arguments) puts "#{command} #{arguments}" if self.class.verbose `#{command} #{arguments}` end end end
Version data entries
4 entries across 4 versions & 1 rubygems