Sha256: 4ca1611746f2270c94c2b73f565f3b9ee22bd47b6cc3dd85abfe64583dee75c3
Contents?: true
Size: 578 Bytes
Versions: 5
Compression:
Stored size: 578 Bytes
Contents
# frozen_string_literal: true require 'pathname' require 'chamber/instance' module Chamber module Commands class Base def self.call(options = {}) new(options).call end attr_accessor :chamber, :shell, :dry_run attr_reader :rootpath def initialize(options = {}) self.chamber = Chamber::Instance.new options self.shell = options[:shell] self.rootpath = options[:rootpath] self.dry_run = options[:dry_run] end protected def rootpath=(other) @rootpath ||= Pathname.new(other) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems