Sha256: 7356562c9de2c4d26d1a392349c4924245b224dbd623dddaa505a2b7cd0bd0b0

Contents?: true

Size: 576 Bytes

Versions: 3

Compression:

Stored size: 576 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

3 entries across 3 versions & 1 rubygems

Version Path
chamber-2.13.1 lib/chamber/commands/base.rb
chamber-2.13.0 lib/chamber/commands/base.rb
chamber-2.12.5 lib/chamber/commands/base.rb