Sha256: bf34cb95774ad4ab07c32768b4677bb938bb03293d02d7369f792267a420960f
Contents?: true
Size: 632 Bytes
Versions: 1
Compression:
Stored size: 632 Bytes
Contents
require 'chamber/commands/context_resolver' require 'chamber/instance' module Chamber module Commands class Base def initialize(options = {}) options = ContextResolver.resolve(options) self.chamber = Chamber::Instance.new options self.shell = options[:shell] self.rootpath = options[:rootpath] self.dry_run = options[:dry_run] end def self.call(options = {}) self.new(options).call end protected attr_accessor :chamber, :shell, :dry_run attr_reader :rootpath def rootpath=(other) @rootpath ||= Pathname.new(other) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chamber-2.0.0 | lib/chamber/commands/base.rb |