Sha256: b16c3a5a9aaadfa534a399f17bcccc8a1c4c2925306f86a6f6003eac4dc4ee49

Contents?: true

Size: 547 Bytes

Versions: 2

Compression:

Stored size: 547 Bytes

Contents

require 'pathname'
require 'chamber/instance'

module  Chamber
module  Commands
class   Base
  def initialize(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 = {})
    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

2 entries across 2 versions & 1 rubygems

Version Path
chamber-2.8.0 lib/chamber/commands/base.rb
chamber-2.7.1 lib/chamber/commands/base.rb