Sha256: c5ed7bd2a9f0140e5f2a7e313322b6ea9dfd9515a4680c32209ce78248690a3c
Contents?: true
Size: 604 Bytes
Versions: 3
Compression:
Stored size: 604 Bytes
Contents
module Perkins module Build class Script module Stages def run_stages STAGES[:builtin].each { |stage| run_builtin_stage(stage) } STAGES[:custom].each { |stage| run_stage(stage) } end def run_builtin_stage(stage) self.send(stage) end def run_stage(stage) puts "call #{stage}" call_custom_stage(stage) end def call_custom_stage(stage) #binding.pry @config.send(stage).present? ? cmd(@config.send(stage)) : self.send(stage) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
perkins-0.0.3 | lib/perkins/build/script/stages.rb |
perkins-0.0.2 | lib/perkins/build/script/stages.rb |
perkins-0.0.1 | lib/perkins/build/script/stages.rb |