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
class my_app { | |
$checkout = "/vagrant" | |
$virtualenv = "/home/vagrant/env" | |
python::virtualenv { $virtualenv: | |
ensure => present, | |
owner => "vagrant", | |
version => "system", | |
} |
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
class system-update { | |
exec { 'apt-get update': | |
command => 'apt-get update', | |
path => ['/usr/bin', '/bin', '/usr/sbin', '/sbin'], | |
} | |
Exec['apt-get update'] -> Package<| |> # before all packages | |
$sysPackages = [ "build-essential", "nmap", "skipfish", "curl", "libcurl4-openssl-dev" ] | |
package { $sysPackages: |
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
__author__ = 'idcmp' | |
import json | |
def handle_westie_results(results): | |
print results | |
dancers = {} | |
success = 0 |
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
public class Model { | |
JSONClient clientFactory; | |
private final String resource; | |
protected Model(String resource, Activity activity) { | |
this.resource = resource; | |
clientFactory = new JSONClient(activity); | |
} | |