class DeploymentEnv
Attributes
branch[RW]
commands[RW]
Public Class Methods
new(config)
click to toggle source
# File lib/tikici.rb, line 73 def initialize(config) @config = config end
Public Instance Methods
current_branch()
click to toggle source
# File lib/tikici.rb, line 81 def current_branch `echo ${GIT_BRANCH#*/}` end
exec()
click to toggle source
# File lib/tikici.rb, line 77 def exec commands.map(&:exec) if current_branch =~ Regexp.new(branch) unless branch.nil? end