provisionator 0.0.17 → 0.0.18

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 9456d0baf6f999eb03d582b97b2d04dc55e16ed2
4
+ data.tar.gz: 0700eef879706f2776131259a0326d413b2e99db
5
+ SHA512:
6
+ metadata.gz: 89005c7ebb14b690483f078beddd284d4d5bf273b49822b566f9c52fbfb5d64679a38aa03870fb7e47e2b15fe2ecc0f367b4285ea848c6baaab91c1a462b1f92
7
+ data.tar.gz: f35fcc20a491668089344aa0603aeca78690965a39f25333f65db6faa51b873323f0cc10025f9c73a64d6cfdd03592a73acaa66a9974681abb9b2ff87e3ebcd2
@@ -1,9 +1,25 @@
1
+ require 'aws-sdk'
2
+
1
3
  Capistrano::Configuration.instance(:must_exist).load do
2
- require 'capistrano/ec2group'
3
- set :aws_access_key_id, ENV["AWS_ACCESS_KEY_ID"]
4
- set :aws_secret_access_key, ENV["AWS_SECRET_ACCESS_KEY"]
5
- set :aws_params, :region => ENV['AWS_REGION'] || 'ap-southeast-2'
6
- set :aws_pvt_dns, false
4
+
5
+ module Capistrano
6
+ class Configuration
7
+ module Groups
8
+ # Associate an EC2 security group with a role
9
+ # For example:
10
+ #
11
+ # group :myapp_web, :web
12
+ # group :myapp_app, :app
13
+ # group :myapp_db, :db
14
+ def group(which, *args)
15
+ AWS::EC2.new.instances.filter('instance-state-code', '16').filter('group-name', which.to_s).each do |instance|
16
+ server(instance.dns_name, *args)
17
+ end
18
+ end
19
+ end
20
+ include Groups
21
+ end
22
+ end
7
23
 
8
24
  set :user, "ubuntu"
9
25
  set :scm, :git
@@ -1,3 +1,3 @@
1
1
  module Provisionator
2
- VERSION = "0.0.17"
2
+ VERSION = "0.0.18"
3
3
  end
@@ -19,7 +19,6 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_dependency 'aws-sdk'
22
- spec.add_dependency 'capistrano-ec2group'
23
22
  spec.add_development_dependency "bundler", "~> 1.3"
24
23
  spec.add_development_dependency "rake"
25
24
  end
metadata CHANGED
@@ -1,52 +1,32 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: provisionator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
5
- prerelease:
4
+ version: 0.0.18
6
5
  platform: ruby
7
6
  authors:
8
7
  - cmaitchison
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-06-03 00:00:00.000000000 Z
11
+ date: 2013-06-11 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: aws-sdk
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
30
- - !ruby/object:Gem::Dependency
31
- name: capistrano-ec2group
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '0'
38
- type: :runtime
39
- prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
24
+ - - '>='
44
25
  - !ruby/object:Gem::Version
45
26
  version: '0'
46
27
  - !ruby/object:Gem::Dependency
47
28
  name: bundler
48
29
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
30
  requirements:
51
31
  - - ~>
52
32
  - !ruby/object:Gem::Version
@@ -54,7 +34,6 @@ dependencies:
54
34
  type: :development
55
35
  prerelease: false
56
36
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
37
  requirements:
59
38
  - - ~>
60
39
  - !ruby/object:Gem::Version
@@ -62,17 +41,15 @@ dependencies:
62
41
  - !ruby/object:Gem::Dependency
63
42
  name: rake
64
43
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
44
  requirements:
67
- - - ! '>='
45
+ - - '>='
68
46
  - !ruby/object:Gem::Version
69
47
  version: '0'
70
48
  type: :development
71
49
  prerelease: false
72
50
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
51
  requirements:
75
- - - ! '>='
52
+ - - '>='
76
53
  - !ruby/object:Gem::Version
77
54
  version: '0'
78
55
  description: To the cloud!
@@ -102,32 +79,25 @@ files:
102
79
  homepage: ''
103
80
  licenses:
104
81
  - MIT
82
+ metadata: {}
105
83
  post_install_message:
106
84
  rdoc_options: []
107
85
  require_paths:
108
86
  - lib
109
87
  required_ruby_version: !ruby/object:Gem::Requirement
110
- none: false
111
88
  requirements:
112
- - - ! '>='
89
+ - - '>='
113
90
  - !ruby/object:Gem::Version
114
91
  version: '0'
115
- segments:
116
- - 0
117
- hash: 4137972516139251445
118
92
  required_rubygems_version: !ruby/object:Gem::Requirement
119
- none: false
120
93
  requirements:
121
- - - ! '>='
94
+ - - '>='
122
95
  - !ruby/object:Gem::Version
123
96
  version: '0'
124
- segments:
125
- - 0
126
- hash: 4137972516139251445
127
97
  requirements: []
128
98
  rubyforge_project:
129
- rubygems_version: 1.8.23
99
+ rubygems_version: 2.0.2
130
100
  signing_key:
131
- specification_version: 3
101
+ specification_version: 4
132
102
  summary: Very higly opinionated Capistrano/Chef/Ubuntu/EC2 deployment tasks
133
103
  test_files: []