heirloom 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +6 -0
- data/README.md +0 -1
- data/lib/heirloom/acl/s3.rb +10 -8
- data/lib/heirloom/artifact.rb +44 -43
- data/lib/heirloom/artifact/artifact_authorizer.rb +20 -22
- data/lib/heirloom/artifact/artifact_builder.rb +41 -37
- data/lib/heirloom/artifact/artifact_destroyer.rb +16 -14
- data/lib/heirloom/artifact/artifact_downloader.rb +22 -40
- data/lib/heirloom/artifact/artifact_lister.rb +10 -7
- data/lib/heirloom/artifact/artifact_reader.rb +17 -20
- data/lib/heirloom/artifact/artifact_updater.rb +6 -5
- data/lib/heirloom/artifact/artifact_uploader.rb +8 -8
- data/lib/heirloom/aws/s3.rb +1 -1
- data/lib/heirloom/cli.rb +37 -30
- data/lib/heirloom/cli/build.rb +40 -0
- data/lib/heirloom/cli/destroy.rb +20 -0
- data/lib/heirloom/cli/download.rb +23 -0
- data/lib/heirloom/cli/list.rb +17 -0
- data/lib/heirloom/cli/show.rb +27 -0
- data/lib/heirloom/cli/update.rb +23 -0
- data/lib/heirloom/config.rb +11 -6
- data/lib/heirloom/destroyer/s3.rb +6 -4
- data/lib/heirloom/directory/directory.rb +15 -11
- data/lib/heirloom/directory/git_directory.rb +4 -3
- data/lib/heirloom/downloader/s3.rb +1 -1
- data/lib/heirloom/logger.rb +6 -4
- data/lib/heirloom/version.rb +1 -1
- data/spec/acl/s3_spec.rb +51 -0
- data/spec/artifact/artifact_authorizer_spec.rb +34 -0
- data/spec/artifact/artifact_builder_spec.rb +41 -0
- data/spec/artifact/artifact_destroyer_spec.rb +45 -0
- data/spec/artifact/artifact_downloader_spec.rb +93 -0
- data/spec/artifact/artifact_lister_spec.rb +21 -0
- data/spec/artifact/artifact_reader_spec.rb +55 -0
- data/spec/artifact/artifact_updater_spec.rb +16 -0
- data/spec/artifact/artifact_uploader_spec.rb +16 -0
- data/spec/artifact_spec.rb +69 -19
- data/spec/aws/s3_spec.rb +55 -0
- data/spec/aws/simpledb_spec.rb +50 -0
- data/spec/config_spec.rb +32 -3
- data/spec/destroyer/s3_spec.rb +21 -0
- data/spec/directory/directory_spec.rb +26 -0
- data/spec/directory/git_directory_spec.rb +28 -0
- data/spec/downloader/s3_spec.rb +23 -0
- data/spec/logger_spec.rb +20 -0
- metadata +55 -16
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Heirloom do
|
4
|
+
|
5
|
+
before do
|
6
|
+
@config_mock = double 'config'
|
7
|
+
@logger_mock = double 'logger'
|
8
|
+
@config_mock.should_receive(:logger).and_return(@logger_mock)
|
9
|
+
@reader = Heirloom::ArtifactUpdater.new :config => @config_mock,
|
10
|
+
:name => 'tim',
|
11
|
+
:id => '123'
|
12
|
+
end
|
13
|
+
|
14
|
+
it "should test the artifact updater methods"
|
15
|
+
|
16
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Heirloom do
|
4
|
+
|
5
|
+
before do
|
6
|
+
@config_mock = double 'config'
|
7
|
+
@logger_mock = double 'logger'
|
8
|
+
@config_mock.should_receive(:logger).and_return(@logger_mock)
|
9
|
+
@reader = Heirloom::ArtifactUploader.new :config => @config_mock,
|
10
|
+
:name => 'tim',
|
11
|
+
:id => '123'
|
12
|
+
end
|
13
|
+
|
14
|
+
it "should test the artifact uploader methods"
|
15
|
+
|
16
|
+
end
|
data/spec/artifact_spec.rb
CHANGED
@@ -1,24 +1,74 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe Heirloom do
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
4
|
+
|
5
|
+
before do
|
6
|
+
Heirloom::Config.should_receive(:new).and_return('config')
|
7
|
+
@artifact = Heirloom::Artifact.new :logger => 'logger',
|
8
|
+
:name => 'tim',
|
9
|
+
:id => '123'
|
10
|
+
end
|
11
|
+
|
12
|
+
|
13
|
+
context "test public methods" do
|
14
|
+
before do
|
15
|
+
@mock = double('Mock')
|
16
|
+
end
|
17
|
+
|
18
|
+
it "should call build method with given args" do
|
19
|
+
@artifact.should_receive(:artifact_builder).and_return(@mock)
|
20
|
+
@mock.should_receive(:build).with('args')
|
21
|
+
@artifact.build('args')
|
22
|
+
end
|
23
|
+
|
24
|
+
it "should call download method with given args" do
|
25
|
+
@artifact.should_receive(:artifact_downloader).and_return(@mock)
|
26
|
+
@mock.should_receive(:download).with('args')
|
27
|
+
@artifact.download('args')
|
28
|
+
end
|
29
|
+
|
30
|
+
it "should call update artifact method with given args" do
|
31
|
+
@artifact.should_receive(:artifact_updater).and_return(@mock)
|
32
|
+
@mock.should_receive(:update).with('args')
|
33
|
+
@artifact.update('args')
|
34
|
+
end
|
35
|
+
|
36
|
+
it "should call upload artifact method with given args" do
|
37
|
+
@artifact.should_receive(:artifact_uploader).and_return(@mock)
|
38
|
+
@mock.should_receive(:upload).with('args')
|
39
|
+
@artifact.upload('args')
|
40
|
+
end
|
41
|
+
|
42
|
+
it "should call authorize method" do
|
43
|
+
@artifact.should_receive(:artifact_authorizer).and_return(@mock)
|
44
|
+
@mock.should_receive(:authorize)
|
45
|
+
@artifact.authorize
|
46
|
+
end
|
47
|
+
|
48
|
+
it "should call artifact exists method" do
|
49
|
+
@artifact.should_receive(:artifact_reader).and_return(@mock)
|
50
|
+
@mock.should_receive(:exists?)
|
51
|
+
@artifact.exists?
|
52
|
+
end
|
53
|
+
|
54
|
+
it "should call show method" do
|
55
|
+
@artifact.should_receive(:artifact_reader).and_return(@mock)
|
56
|
+
@mock.should_receive(:show)
|
57
|
+
@artifact.show
|
58
|
+
end
|
59
|
+
|
60
|
+
it "should call list method" do
|
61
|
+
@artifact.should_receive(:artifact_lister).and_return(@mock)
|
62
|
+
@mock.should_receive(:list)
|
63
|
+
@artifact.list
|
64
|
+
end
|
65
|
+
|
66
|
+
it "should call cleanup method" do
|
67
|
+
@artifact.should_receive(:artifact_builder).and_return(@mock)
|
68
|
+
@mock.should_receive(:cleanup)
|
69
|
+
@artifact.cleanup
|
70
|
+
end
|
71
|
+
|
72
|
+
end
|
23
73
|
|
24
74
|
end
|
data/spec/aws/s3_spec.rb
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Heirloom do
|
4
|
+
before do
|
5
|
+
@config_mock = mock 'config'
|
6
|
+
@config_mock.should_receive(:access_key).and_return 'the-key'
|
7
|
+
@config_mock.should_receive(:secret_key).and_return 'the-secret'
|
8
|
+
@fog_mock = mock 'fog'
|
9
|
+
Fog::Storage.should_receive(:new).and_return @fog_mock
|
10
|
+
@s3 = Heirloom::AWS::S3.new :config => @config_mock,
|
11
|
+
:region => 'us-west-1'
|
12
|
+
|
13
|
+
|
14
|
+
end
|
15
|
+
|
16
|
+
it "should delete an object from s3" do
|
17
|
+
@fog_mock.should_receive(:delete_object).
|
18
|
+
with('bucket', 'object', { :option => 'test' })
|
19
|
+
@s3.delete_object('bucket', 'object', { :option => 'test' })
|
20
|
+
end
|
21
|
+
|
22
|
+
it "should get a bucket from s3" do
|
23
|
+
directories_mock = mock 'directories'
|
24
|
+
@fog_mock.should_receive(:directories).
|
25
|
+
and_return directories_mock
|
26
|
+
directories_mock.should_receive(:get).with 'bucket'
|
27
|
+
@s3.get_bucket 'bucket'
|
28
|
+
end
|
29
|
+
|
30
|
+
it "should get an object from s3" do
|
31
|
+
body_mock = mock 'body'
|
32
|
+
@fog_mock.should_receive(:get_object).
|
33
|
+
with('bucket', 'object').
|
34
|
+
and_return body_mock
|
35
|
+
body_mock.should_receive(:body)
|
36
|
+
@s3.get_object('bucket', 'object')
|
37
|
+
end
|
38
|
+
|
39
|
+
it "should get a buckets acl from s3" do
|
40
|
+
body_mock = mock 'body'
|
41
|
+
@fog_mock.should_receive(:get_object).
|
42
|
+
with('bucket', 'object').
|
43
|
+
and_return body_mock
|
44
|
+
body_mock.should_receive(:body)
|
45
|
+
@s3.get_object('bucket', 'object')
|
46
|
+
end
|
47
|
+
|
48
|
+
it "should set object acls" do
|
49
|
+
@fog_mock.should_receive(:put_object_acl).
|
50
|
+
with 'bucket', 'object', 'grants'
|
51
|
+
@s3.put_object_acl 'bucket', 'object', 'grants'
|
52
|
+
end
|
53
|
+
|
54
|
+
|
55
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Heirloom do
|
4
|
+
before do
|
5
|
+
@config_mock = mock 'config'
|
6
|
+
@config_mock.should_receive(:access_key).and_return 'the-key'
|
7
|
+
@config_mock.should_receive(:secret_key).and_return 'the-secret'
|
8
|
+
@config_mock.should_receive(:primary_region).and_return 'us-west-1'
|
9
|
+
@fog_mock = mock 'fog'
|
10
|
+
Fog::AWS::SimpleDB.should_receive(:new).
|
11
|
+
with(:aws_access_key_id => 'the-key',
|
12
|
+
:aws_secret_access_key => 'the-secret',
|
13
|
+
:region => 'us-west-1').
|
14
|
+
and_return @fog_mock
|
15
|
+
@sdb = Heirloom::AWS::SimpleDB.new :config => @config_mock
|
16
|
+
end
|
17
|
+
|
18
|
+
it "should list the domains in simples db" do
|
19
|
+
body_mock = mock 'body'
|
20
|
+
@fog_mock.should_receive(:list_domains).
|
21
|
+
and_return body_mock
|
22
|
+
body_mock.should_receive(:body).
|
23
|
+
and_return 'Domains' => ['domain1']
|
24
|
+
@sdb.domains.should == ['domain1']
|
25
|
+
end
|
26
|
+
|
27
|
+
it "should create a new domain when it does not exist" do
|
28
|
+
@sdb.should_receive(:domains).and_return([])
|
29
|
+
@fog_mock.should_receive(:create_domain).with('new_domain')
|
30
|
+
@sdb.create_domain('new_domain')
|
31
|
+
end
|
32
|
+
|
33
|
+
it "should not create a new domain when already exists" do
|
34
|
+
@sdb.should_receive(:domains).and_return(['new_domain'])
|
35
|
+
@fog_mock.should_receive(:create_domain).exactly(0).times
|
36
|
+
@sdb.create_domain('new_domain')
|
37
|
+
end
|
38
|
+
|
39
|
+
it "should update the attributes for an entry" do
|
40
|
+
@fog_mock.should_receive(:put_attributes).
|
41
|
+
with('domain', 'key', 'attributes', { "option" => "123" })
|
42
|
+
@sdb.put_attributes('domain', 'key', 'attributes', { "option" => "123" })
|
43
|
+
end
|
44
|
+
|
45
|
+
it "should delete the given entry from sdb" do
|
46
|
+
@fog_mock.should_receive(:delete_attributes).with('domain', 'key')
|
47
|
+
@sdb.delete('domain', 'key')
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
data/spec/config_spec.rb
CHANGED
@@ -2,10 +2,39 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe Heirloom do
|
4
4
|
|
5
|
-
|
5
|
+
before do
|
6
|
+
@config = { 'aws' =>
|
7
|
+
{ 'access_key' => 'key',
|
8
|
+
'secret_key' => 'secret',
|
9
|
+
'regions' => ['us-west-1', 'us-west-2'],
|
10
|
+
'bucket_prefix' => 'prefix',
|
11
|
+
'authorized_aws_accounts' => [ 'test1 @acct.com', 'test2@acct.com' ]
|
12
|
+
},
|
13
|
+
'logger' => 'da-logger'
|
14
|
+
}
|
15
|
+
end
|
16
|
+
|
17
|
+
it "should create a new config object from the hash passed as config" do
|
18
|
+
config = Heirloom::Config.new :config => @config
|
19
|
+
config.access_key.should == @config['aws']['access_key']
|
20
|
+
config.secret_key.should == @config['aws']['secret_key']
|
21
|
+
config.regions.should == @config['aws']['regions']
|
22
|
+
config.primary_region.should == 'us-west-1'
|
23
|
+
config.bucket_prefix.should == @config['aws']['bucket_prefix']
|
24
|
+
config.authorized_aws_accounts.should == @config['aws']['authorized_aws_accounts']
|
25
|
+
config.logger.should == @config['logger']
|
26
|
+
end
|
27
|
+
|
28
|
+
it "should create a new config object and read from ~/.heirloom.yml" do
|
29
|
+
File.should_receive(:open).with("#{ENV['HOME']}/.heirloom.yml").
|
30
|
+
and_return(@config.to_yaml)
|
6
31
|
config = Heirloom::Config.new
|
7
|
-
config.
|
32
|
+
config.access_key.should == @config['aws']['access_key']
|
33
|
+
config.secret_key.should == @config['aws']['secret_key']
|
34
|
+
config.regions.should == @config['aws']['regions']
|
35
|
+
config.primary_region.should == 'us-west-1'
|
36
|
+
config.bucket_prefix.should == @config['aws']['bucket_prefix']
|
37
|
+
config.authorized_aws_accounts.should == @config['aws']['authorized_aws_accounts']
|
8
38
|
end
|
9
39
|
|
10
40
|
end
|
11
|
-
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Heirloom do
|
4
|
+
|
5
|
+
before do
|
6
|
+
@config_mock = double 'config'
|
7
|
+
@s3 = Heirloom::Destroyer::S3.new :config => @config_mock,
|
8
|
+
:region => 'us-west-1'
|
9
|
+
end
|
10
|
+
|
11
|
+
it "should delete the specified file from s3" do
|
12
|
+
s3_mock = mock 's3 mock'
|
13
|
+
@s3.should_receive(:s3).and_return(s3_mock)
|
14
|
+
s3_mock.should_receive(:delete_object).
|
15
|
+
with('bucket', "key_folder/key_name")
|
16
|
+
@s3.destroy_file :key_name => 'key_name',
|
17
|
+
:key_folder => 'key_folder',
|
18
|
+
:bucket => 'bucket'
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Heirloom do
|
4
|
+
|
5
|
+
before do
|
6
|
+
@config_mock = double 'config'
|
7
|
+
@logger_mock = double 'logger'
|
8
|
+
@config_mock.should_receive(:logger).and_return(@logger_mock)
|
9
|
+
@directory = Heirloom::Directory.new :config => @config_mock,
|
10
|
+
:exclude => ['.', '..', 'pack_me'],
|
11
|
+
:path => '/target/dir'
|
12
|
+
end
|
13
|
+
|
14
|
+
it "should build an artifact from the latest commit in path" do
|
15
|
+
@logger_mock.should_receive(:info).exactly(3).times
|
16
|
+
file_mock = double 'file'
|
17
|
+
File.should_receive(:open).and_return file_mock
|
18
|
+
gzip_mock = double 'gzip mock'
|
19
|
+
Zlib::GzipWriter.should_receive(:new).and_return gzip_mock
|
20
|
+
@directory.should_receive(:files_to_pack).
|
21
|
+
exactly(2).times.and_return(['pack_me'])
|
22
|
+
Minitar.should_receive(:pack).with(['pack_me'], gzip_mock)
|
23
|
+
@directory.build_artifact_from_directory
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Heirloom do
|
4
|
+
|
5
|
+
before do
|
6
|
+
@git_directory = Heirloom::GitDirectory.new :path => '/target/dir'
|
7
|
+
end
|
8
|
+
|
9
|
+
it "should read commit from the given path" do
|
10
|
+
repo_mock = double 'repo mock'
|
11
|
+
Repo.should_receive(:new).with('/target/dir').and_return(repo_mock)
|
12
|
+
commits_mock = double 'commits mock'
|
13
|
+
repo_mock.should_receive(:commits).and_return(commits_mock)
|
14
|
+
commits_mock.should_receive(:first).and_return('git_sha')
|
15
|
+
@git_directory.commit.should == 'git_sha'
|
16
|
+
end
|
17
|
+
|
18
|
+
it "should read commit from the given path" do
|
19
|
+
repo_mock = double 'repo mock'
|
20
|
+
Repo.should_receive(:new).with('/target/dir').and_return(repo_mock)
|
21
|
+
commits_mock = double 'commits mock'
|
22
|
+
repo_mock.should_receive(:commits).with('sha_i_want').
|
23
|
+
and_return(commits_mock)
|
24
|
+
commits_mock.should_receive(:first).and_return('git_sha')
|
25
|
+
@git_directory.commit 'sha_i_want'
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Heirloom do
|
4
|
+
|
5
|
+
before do
|
6
|
+
@config_mock = double 'config'
|
7
|
+
@logger_mock = double 'logger'
|
8
|
+
@config_mock.should_receive(:logger).and_return(@logger_mock)
|
9
|
+
|
10
|
+
@s3 = Heirloom::Downloader::S3.new :config => @config_mock,
|
11
|
+
:region => 'us-west-1'
|
12
|
+
end
|
13
|
+
|
14
|
+
it "should download the specified file from s3" do
|
15
|
+
s3_mock = mock 's3 mock'
|
16
|
+
@s3.should_receive(:s3).and_return(s3_mock)
|
17
|
+
s3_mock.should_receive(:get_object).
|
18
|
+
with 'bucket', 'key_name'
|
19
|
+
@s3.download_file :key => 'key_name',
|
20
|
+
:bucket => 'bucket'
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
data/spec/logger_spec.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Heirloom do
|
4
|
+
|
5
|
+
it "should create a new logger object from the hash passed as :logger" do
|
6
|
+
logger_mock = mock 'logger'
|
7
|
+
logger_mock.should_receive(:info).with 'a message'
|
8
|
+
logger = Heirloom::HeirloomLogger.new :logger => logger_mock
|
9
|
+
logger.info 'a message'
|
10
|
+
end
|
11
|
+
|
12
|
+
it "should create a new logger object when one is not passed" do
|
13
|
+
logger_mock = mock 'logger'
|
14
|
+
Logger.should_receive(:new).with(STDOUT).and_return logger_mock
|
15
|
+
logger_mock.should_receive(:info).with 'a message'
|
16
|
+
logger = Heirloom::HeirloomLogger.new
|
17
|
+
logger.info 'a message'
|
18
|
+
end
|
19
|
+
|
20
|
+
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.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-07-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &70283746732980 !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: *70283746732980
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: fog
|
27
|
-
requirement: &
|
27
|
+
requirement: &70283746730600 !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: *70283746730600
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: grit
|
38
|
-
requirement: &
|
38
|
+
requirement: &70283746729140 !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: *70283746729140
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: logger
|
49
|
-
requirement: &
|
49
|
+
requirement: &70283746743980 !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: *70283746743980
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: minitar
|
60
|
-
requirement: &
|
60
|
+
requirement: &70283746741560 !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: *70283746741560
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: trollop
|
71
|
-
requirement: &
|
71
|
+
requirement: &70283746739720 !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: *70283746739720
|
80
80
|
description: I help build and manage artifacts
|
81
81
|
email:
|
82
82
|
- brett@weav.net
|
@@ -87,6 +87,7 @@ extra_rdoc_files: []
|
|
87
87
|
files:
|
88
88
|
- .gitignore
|
89
89
|
- .rvmrc
|
90
|
+
- CHANGELOG
|
90
91
|
- Gemfile
|
91
92
|
- LICENSE
|
92
93
|
- README.md
|
@@ -109,6 +110,12 @@ files:
|
|
109
110
|
- lib/heirloom/aws/s3.rb
|
110
111
|
- lib/heirloom/aws/simpledb.rb
|
111
112
|
- lib/heirloom/cli.rb
|
113
|
+
- lib/heirloom/cli/build.rb
|
114
|
+
- lib/heirloom/cli/destroy.rb
|
115
|
+
- lib/heirloom/cli/download.rb
|
116
|
+
- lib/heirloom/cli/list.rb
|
117
|
+
- lib/heirloom/cli/show.rb
|
118
|
+
- lib/heirloom/cli/update.rb
|
112
119
|
- lib/heirloom/config.rb
|
113
120
|
- lib/heirloom/destroyer.rb
|
114
121
|
- lib/heirloom/destroyer/s3.rb
|
@@ -122,8 +129,24 @@ files:
|
|
122
129
|
- lib/heirloom/uploader/s3.rb
|
123
130
|
- lib/heirloom/version.rb
|
124
131
|
- script/ci_setup
|
132
|
+
- spec/acl/s3_spec.rb
|
133
|
+
- spec/artifact/artifact_authorizer_spec.rb
|
134
|
+
- spec/artifact/artifact_builder_spec.rb
|
135
|
+
- spec/artifact/artifact_destroyer_spec.rb
|
136
|
+
- spec/artifact/artifact_downloader_spec.rb
|
137
|
+
- spec/artifact/artifact_lister_spec.rb
|
138
|
+
- spec/artifact/artifact_reader_spec.rb
|
139
|
+
- spec/artifact/artifact_updater_spec.rb
|
140
|
+
- spec/artifact/artifact_uploader_spec.rb
|
125
141
|
- spec/artifact_spec.rb
|
142
|
+
- spec/aws/s3_spec.rb
|
143
|
+
- spec/aws/simpledb_spec.rb
|
126
144
|
- spec/config_spec.rb
|
145
|
+
- spec/destroyer/s3_spec.rb
|
146
|
+
- spec/directory/directory_spec.rb
|
147
|
+
- spec/directory/git_directory_spec.rb
|
148
|
+
- spec/downloader/s3_spec.rb
|
149
|
+
- spec/logger_spec.rb
|
127
150
|
- spec/spec_helper.rb
|
128
151
|
homepage: ''
|
129
152
|
licenses: []
|
@@ -139,7 +162,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
139
162
|
version: '0'
|
140
163
|
segments:
|
141
164
|
- 0
|
142
|
-
hash:
|
165
|
+
hash: -1600132010166010872
|
143
166
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
144
167
|
none: false
|
145
168
|
requirements:
|
@@ -148,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
171
|
version: '0'
|
149
172
|
segments:
|
150
173
|
- 0
|
151
|
-
hash:
|
174
|
+
hash: -1600132010166010872
|
152
175
|
requirements: []
|
153
176
|
rubyforge_project: heirloom
|
154
177
|
rubygems_version: 1.8.16
|
@@ -156,6 +179,22 @@ signing_key:
|
|
156
179
|
specification_version: 3
|
157
180
|
summary: I help with artifacts
|
158
181
|
test_files:
|
182
|
+
- spec/acl/s3_spec.rb
|
183
|
+
- spec/artifact/artifact_authorizer_spec.rb
|
184
|
+
- spec/artifact/artifact_builder_spec.rb
|
185
|
+
- spec/artifact/artifact_destroyer_spec.rb
|
186
|
+
- spec/artifact/artifact_downloader_spec.rb
|
187
|
+
- spec/artifact/artifact_lister_spec.rb
|
188
|
+
- spec/artifact/artifact_reader_spec.rb
|
189
|
+
- spec/artifact/artifact_updater_spec.rb
|
190
|
+
- spec/artifact/artifact_uploader_spec.rb
|
159
191
|
- spec/artifact_spec.rb
|
192
|
+
- spec/aws/s3_spec.rb
|
193
|
+
- spec/aws/simpledb_spec.rb
|
160
194
|
- spec/config_spec.rb
|
195
|
+
- spec/destroyer/s3_spec.rb
|
196
|
+
- spec/directory/directory_spec.rb
|
197
|
+
- spec/directory/git_directory_spec.rb
|
198
|
+
- spec/downloader/s3_spec.rb
|
199
|
+
- spec/logger_spec.rb
|
161
200
|
- spec/spec_helper.rb
|