heirloom 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/LICENSE +20 -0
- data/README.md +34 -0
- data/lib/heirloom/config.rb +1 -1
- data/lib/heirloom/version.rb +1 -1
- data/spec/artifact_spec.rb +23 -0
- metadata +19 -15
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2012 Intuit Inc
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
Heirloom
|
2
|
+
========
|
3
|
+
|
4
|
+
I help building and deploying artifcts to cloud based storage services and tracking meta data about those artifacts for easy deployments.
|
5
|
+
|
6
|
+
|
7
|
+
How To Use Heirloom
|
8
|
+
-------------------
|
9
|
+
|
10
|
+
To get started copy the sample below into .heirloom.yml and update the specified fields.
|
11
|
+
|
12
|
+
```
|
13
|
+
aws:
|
14
|
+
access_key: UPDATE_ME
|
15
|
+
secret_key: UPDATE_ME
|
16
|
+
bucket_prefix: UPDATE_ME
|
17
|
+
regions:
|
18
|
+
- us-west-1
|
19
|
+
- us-west-2
|
20
|
+
- us-east-1
|
21
|
+
authorized_aws_accounts:
|
22
|
+
- UPDATE@ME
|
23
|
+
- UPDATE@ME
|
24
|
+
```
|
25
|
+
|
26
|
+
* **access_key / secret_key**: Account where you would like the artifacts storaged.
|
27
|
+
* **bucket prefix**: Heirloom expects a bucket with the prefix - region to be created in each zone, for example if the prefix is my-artifact, heirloom would expect my-artifact-us-west-1 to be created (as well as any addition regions listed).
|
28
|
+
* **regions**: AWS regions where the artifcat should be uploaded
|
29
|
+
* **authorized_aws_accounts**: Heirloom expects you to deploy to seperate accounts from where the artifact is stored. authorized_aws_accounts specifices the **email** address of other accounts to be authorized to access private artifacts.
|
30
|
+
|
31
|
+
Platforms
|
32
|
+
---------
|
33
|
+
|
34
|
+
Currently I support s3 and simpledb but would one day like to expand (Big Table, etc).
|
data/lib/heirloom/config.rb
CHANGED
@@ -16,7 +16,7 @@ module Heirloom
|
|
16
16
|
self.access_key = c['aws']['access_key']
|
17
17
|
self.secret_key = c['aws']['secret_key']
|
18
18
|
self.regions = c['aws']['regions']
|
19
|
-
self.primary_region = regions.first
|
19
|
+
self.primary_region = regions ? regions.first : 'us-west-1'
|
20
20
|
self.bucket_prefix = c['aws']['bucket_prefix']
|
21
21
|
self.authorized_aws_accounts = c['aws']['authorized_aws_accounts']
|
22
22
|
end
|
data/lib/heirloom/version.rb
CHANGED
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Heirloom do
|
4
|
+
before do
|
5
|
+
@config = { 'access_key' => 'key',
|
6
|
+
'secret_key' => 'secret',
|
7
|
+
'regions' => ['us-west-1', 'us-west-2'],
|
8
|
+
'bucket_prefix' => 'prefix',
|
9
|
+
'authorized_aws_accounts' => [ 'test1 @acct.com', 'test2@acct.com'] }
|
10
|
+
@logger = 'logger'
|
11
|
+
end
|
12
|
+
|
13
|
+
it "should create a new artifact object" do
|
14
|
+
Heirloom::Config.should_receive(:new).with(:config => @config)
|
15
|
+
Heirloom::HeirloomLogger.should_receive(:new).with(:logger => 'logger')
|
16
|
+
artifact = Heirloom::Artifact.new :config => @config,
|
17
|
+
:logger => 'logger'
|
18
|
+
end
|
19
|
+
|
20
|
+
it "should build the artifact"
|
21
|
+
it "should update the artifact"
|
22
|
+
|
23
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: heirloom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-06-18 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &70233621052940 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70233621052940
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: fog
|
27
|
-
requirement: &
|
27
|
+
requirement: &70233621051920 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70233621051920
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: grit
|
38
|
-
requirement: &
|
38
|
+
requirement: &70233621006260 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70233621006260
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: logger
|
49
|
-
requirement: &
|
49
|
+
requirement: &70233621004160 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70233621004160
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: minitar
|
60
|
-
requirement: &
|
60
|
+
requirement: &70233621002400 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70233621002400
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: trollop
|
71
|
-
requirement: &
|
71
|
+
requirement: &70233621000920 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,7 +76,7 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70233621000920
|
80
80
|
description: I help build and manage artifacts
|
81
81
|
email:
|
82
82
|
- brett@weav.net
|
@@ -88,6 +88,8 @@ files:
|
|
88
88
|
- .gitignore
|
89
89
|
- .rvmrc
|
90
90
|
- Gemfile
|
91
|
+
- LICENSE
|
92
|
+
- README.md
|
91
93
|
- Rakefile
|
92
94
|
- bin/heirloom
|
93
95
|
- heirloom.gemspec
|
@@ -120,6 +122,7 @@ files:
|
|
120
122
|
- lib/heirloom/uploader/s3.rb
|
121
123
|
- lib/heirloom/version.rb
|
122
124
|
- script/ci_setup
|
125
|
+
- spec/artifact_spec.rb
|
123
126
|
- spec/config_spec.rb
|
124
127
|
- spec/spec_helper.rb
|
125
128
|
homepage: ''
|
@@ -136,7 +139,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
136
139
|
version: '0'
|
137
140
|
segments:
|
138
141
|
- 0
|
139
|
-
hash:
|
142
|
+
hash: -188177513496697606
|
140
143
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
141
144
|
none: false
|
142
145
|
requirements:
|
@@ -145,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
148
|
version: '0'
|
146
149
|
segments:
|
147
150
|
- 0
|
148
|
-
hash:
|
151
|
+
hash: -188177513496697606
|
149
152
|
requirements: []
|
150
153
|
rubyforge_project: heirloom
|
151
154
|
rubygems_version: 1.8.16
|
@@ -153,5 +156,6 @@ signing_key:
|
|
153
156
|
specification_version: 3
|
154
157
|
summary: I help with artifacts
|
155
158
|
test_files:
|
159
|
+
- spec/artifact_spec.rb
|
156
160
|
- spec/config_spec.rb
|
157
161
|
- spec/spec_helper.rb
|