Module: Qbuild::BuildAction

Defined in:
lib/qbuild/build_action.rb

Class Method Summary collapse

Class Method Details

.run_post_build_actionsObject



12
13
14
15
16
17
18
19
# File 'lib/qbuild/build_action.rb', line 12

def self.run_post_build_actions
  actions = Qbuild::Config.post_build
  unless actions.nil?
    actions.each do |action|
      system action.to_s
    end
  end
end

.run_pre_build_actionsObject



3
4
5
6
7
8
9
10
# File 'lib/qbuild/build_action.rb', line 3

def self.run_pre_build_actions
  actions = Qbuild::Config.pre_build
  unless actions.nil?
    actions.each do |action|
      system action.to_s
    end
  end
end