This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TeamCity | |
def self.running? | |
ENV.include? 'TEAMCITY_PROJECT_NAME' | |
end | |
def self.method_missing(method, *args, &block) | |
return unless running? | |
message_name = camel_case method.to_s | |
publish message_name, args[0] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
yum install ruby18 rubygems18 -y | |
alternatives --set ruby /usr/bin/ruby1.8 | |
rpm -ivh http://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm | |
yum install puppet-3.7.3 -y --disableplugin=priorities |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
def chk(file_to_check, cmd) | |
puts "checking '#{file_to_check}'" | |
if !system("hg cat -r tip '#{file_to_check}' | #{cmd} 2>&1") | |
print('!!! Syntax error in file: ' + file_to_check + "\n") | |
exit(1) | |
end | |
end |
NewerOlder