automan 2.3.5 → 2.3.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +0 -5
  3. data/automan.gemspec +3 -3
  4. data/lib/automan.rb +0 -1
  5. data/lib/automan/base.rb +3 -7
  6. data/lib/automan/beanstalk/deployer.rb +1 -1
  7. data/lib/automan/beanstalk/package.rb +1 -1
  8. data/lib/automan/beanstalk/router.rb +1 -1
  9. data/lib/automan/cli/snapper.rb +23 -3
  10. data/lib/automan/cli/stacker.rb +0 -19
  11. data/lib/automan/cloudformation/launcher.rb +3 -6
  12. data/lib/automan/cloudformation/replacer.rb +1 -1
  13. data/lib/automan/cloudformation/terminator.rb +1 -1
  14. data/lib/automan/ec2/image.rb +3 -3
  15. data/lib/automan/mixins/aws_caller.rb +7 -21
  16. data/lib/automan/rds/snapshot.rb +25 -35
  17. data/lib/automan/s3/downloader.rb +1 -10
  18. data/lib/automan/version.rb +1 -1
  19. data/spec/beanstalk/application_spec.rb +17 -17
  20. data/spec/beanstalk/configuration_spec.rb +24 -24
  21. data/spec/beanstalk/deployer_spec.rb +65 -65
  22. data/spec/beanstalk/router_spec.rb +19 -18
  23. data/spec/beanstalk/terminator_spec.rb +16 -16
  24. data/spec/beanstalk/uploader_spec.rb +13 -13
  25. data/spec/beanstalk/version_spec.rb +10 -8
  26. data/spec/cloudformation/launcher_spec.rb +65 -63
  27. data/spec/cloudformation/replacer_spec.rb +10 -10
  28. data/spec/cloudformation/terminator_spec.rb +23 -23
  29. data/spec/cloudformation/uploader_spec.rb +13 -13
  30. data/spec/ec2/image_spec.rb +55 -55
  31. data/spec/ec2/instance_spec.rb +17 -17
  32. data/spec/mixins/aws_caller_spec.rb +9 -9
  33. data/spec/mixins/utils_spec.rb +28 -27
  34. data/spec/rds/snapshot_spec.rb +46 -44
  35. metadata +9 -22
  36. data/.ruby-gemset +0 -1
  37. data/.ruby-version +0 -1
  38. data/.travis.yml +0 -5
  39. data/lib/automan/elasticache/router.rb +0 -79
  40. data/spec/elasticache/router_spec.rb +0 -29
  41. data/templates/stacker/.env.example +0 -14
  42. data/templates/stacker/.gitignore +0 -2
  43. data/templates/stacker/.ruby-gemset.tt +0 -1
  44. data/templates/stacker/.ruby-version +0 -1
  45. data/templates/stacker/Gemfile +0 -4
  46. data/templates/stacker/bin/%app_name%.tt +0 -62
  47. data/templates/stacker/bin/launch_%app_name%.sh.tt +0 -12
@@ -1 +0,0 @@
1
- <%= @app_name %>
@@ -1 +0,0 @@
1
- 2.2.2
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'cloudformation-ruby-dsl'
4
- gem 'automan'
@@ -1,62 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require 'bundler/setup'
3
- require 'cloudformation-ruby-dsl/cfntemplate'
4
- require 'json'
5
-
6
- t = template do
7
- ## CloudFormation template stuff goes here
8
- ## See https://github.com/bazaarvoice/cloudformation-ruby-dsl
9
- ##
10
- ## Here's an example.
11
- ##
12
-
13
- # value AWSTemplateFormatVersion: '2010-09-09'
14
-
15
- # value Description: 'Creates resources for my stack'
16
-
17
- # parameter 'VpcId',
18
- # Description: 'The VPC in which to launch',
19
- # Type: 'String'
20
-
21
- # parameter 'SubnetId',
22
- # Description: 'The Subnet in which to launch the instances',
23
- # Type: 'String'
24
-
25
- # parameter 'RemoteAccessSG',
26
- # Description: 'The security group allowing remote access',
27
- # Type: 'String'
28
-
29
- # parameter 'KeyPairName',
30
- # Description: 'Public/private key pairs allow you to securely connect to your instance after it launches',
31
- # Type: 'String'
32
-
33
- # parameter 'InstanceType',
34
- # Description: 'EC2 instance type for training machines',
35
- # Type: 'String',
36
- # Default: 't2.small'
37
-
38
- # parameter 'ImageId',
39
- # Description: 'Amazon Machine Image Id of pre-baked training machine',
40
- # Type: 'String'
41
-
42
- # resource "MyInstance", Type: 'AWS::EC2::Instance',
43
- # Properties: {
44
- # ImageId: ref('ImageId'),
45
- # InstanceType: ref('InstanceType'),
46
- # NetworkInterfaces: [{
47
- # AssociatePublicIpAddress: 'true',
48
- # DeviceIndex: '0',
49
- # DeleteOnTermination: 'true',
50
- # SubnetId: ref('SubnetId'),
51
- # GroupSet: [
52
- # ref('RemoteAccessSG')
53
- # ]
54
- # }],
55
- # Tags: [
56
- # { Key: 'Name', Value: "MyInstance" }
57
- # ],
58
- # KeyName: ref('KeyPairName')
59
- # }
60
- end
61
-
62
- puts JSON.pretty_generate(t)
@@ -1,12 +0,0 @@
1
- #!/bin/bash
2
- # To set template parameters, add the -p options
3
- # to the end of the stacker command:
4
- #
5
- # stacker launch -n <%= @app_name %> -t <%= @app_name %>.json --disable-rollback \
6
- # -p VpcId:$VPC_ID \
7
- # SubnetId:$SUBNET_ID \
8
- # RemoteAccessSG:$REMOTE_ACCESS_SG \
9
- # KeyPairName:$KEYPAIR_NAME \
10
- # InstanceType:$INSTANCE_TYPE \
11
- # ImageId:$IMAGE_ID
12
- stacker launch -n <%= @app_name %> -t <%= @app_name %>.json --disable-rollback