This file contains 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
def organization = 'IT-Puppet' | |
def github_url = 'https://your-github-enterprise.local' | |
def page = 1 | |
def linkHeader = 'rel="next"' | |
def pages = [] | |
while (linkHeader =~ /.*rel="next"/ ) { | |
repoApi = new URL("${github_url}/api/v3/orgs/${organization}/repos?page=${page}") |
This file contains 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
$letter = 'z' | |
$list = ['a', 'b', 'c'] | |
$list.each |$item| { | |
if $item == 'b' { | |
$letter = 'b' | |
notify{"Letter: ${letter}": } | |
} | |
} | |
notify{"Letter: ${letter}": } |
This file contains 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
# Installs Maven 3.1.1 | |
node.override['maven']['3']['version'] = "3.1.1" | |
node.override['maven']['3']['checksum'] = "077ed466455991d5abb4748a1d022e2d2a54dc4d557c723ecbacdc857c61d51b" | |
include_recipe 'maven' |
NewerOlder