Sha256: ceb5717a75f3e523d41cf84dd156ce026c4770bef2497ec2c245ef128ff43196
Contents?: true
Size: 900 Bytes
Versions: 8
Compression:
Stored size: 900 Bytes
Contents
module Context module Studio module Deployer def self.set(deployer_class) @deployer = deployer_class if @deployer.nil? @deployer end def self.execute(action) @deployer.send(action) end def self.method_missing(method_name, *argv, &block) @deployer.debug_log "Searching method #{method_name} in context #{@deployer}" is_deploy_context_respond_to_action = @deployer.respond_to?(method_name) && @deployer.actions_permitted?(method_name.to_s) if is_deploy_context_respond_to_action @deployer.execute_action(@deployer, method_name) else @deployer.debug_log "\n\nUnavailable action '#{method_name}' for context #{@deployer.context_name} as #{@deployer.respond_to?(method_name)} and #{@deployer.actions_permitted?(method_name)} for #{@deployer.class}\n" end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems