Sha256: 7df8c6127bfed4d71233c4d0b9ef9b03bbb3ac4571f298e359bf95055dc57d21
Contents?: true
Size: 625 Bytes
Versions: 1
Compression:
Stored size: 625 Bytes
Contents
module Superhosting module ConfigExecutor class Base include Helpers attr_accessor :commands attr_accessor :model, :lib, :etc, :docker_api def initialize(model:, lib:, etc:, docker_api:, **kwargs) kwargs.each do |k, v| instance_variable_set("@#{k}", v) self.class.class_eval("attr_accessor :#{k}") end self.commands = [] self.model = model self.lib = lib self.etc = etc self.docker_api = docker_api end def execute(script) self.instance_eval(script, script.path.to_s) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
superhosting-0.0.2 | lib/superhosting/config_executor/base.rb |