Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jeppenejsum committed May 11, 2009
1 parent 532a1d3 commit 9053f72
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions build.gradle
Expand Up @@ -15,10 +15,10 @@ version = 1

awsAccessKeyId=""
awsSecretAccessKey=""
ec2keyname = ""
ec2KeyFile = ""
s3Bucket = ""
ec2keyname = "" // Name of the EC2 key used to start instance
ec2KeyFile = "" // Path to EC2 key file
s3Bucket = "" // The S3 bucket to use for uploading cookbooks & war file

imageId = "ami-2c9f7845" // Rightscale Ubuntu 8.04

ec2 = new Jec2(awsAccessKeyId, awsSecretAccessKey);
Expand All @@ -41,7 +41,6 @@ createTask('createInstance', dependsOn: 'libs') {
def instances = ec2.runInstances(config)
def instance = instances.instances.get(0)
createInstance.instanceId = instance.instanceId
//createInstance.instanceId = 'i-11057578'
println "Started instance with id $createInstance.instanceId"
}

Expand Down Expand Up @@ -85,6 +84,8 @@ def bootstrap(cookbookURL, dnaURL) {
return true
} catch (SocketTimeoutException e) {
return false;
} catch (java.net.ConnectException e) {
return false;
} finally {
socket.close()
}
Expand Down

0 comments on commit 9053f72

Please sign in to comment.