beanstalkify 0.0.1 → 0.0.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/Gemfile.lock +1 -1
- data/lib/beanstalkify/archive.rb +2 -1
- data/lib/beanstalkify/version.rb +1 -1
- data/test/archive_spec.rb +6 -6
- metadata +59 -61
- data/test/application_spec.rb +0 -9
- data/test/deploy_spec.rb +0 -24
- data/test/environment_spec.rb +0 -9
data/Gemfile.lock
CHANGED
data/lib/beanstalkify/archive.rb
CHANGED
data/lib/beanstalkify/version.rb
CHANGED
data/test/archive_spec.rb
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
|
2
|
-
require './archive'
|
2
|
+
require './lib/beanstalkify/archive'
|
3
3
|
|
4
|
-
describe Archive do
|
4
|
+
describe Beanstalkify::Archive do
|
5
5
|
archive = nil
|
6
6
|
before do
|
7
|
-
archive = Archive.new '/path/to/my/archive/
|
7
|
+
archive = Beanstalkify::Archive.new '/path/to/my/archive/app-name-version.zip'
|
8
8
|
end
|
9
9
|
|
10
10
|
it 'should store the path' do
|
11
|
-
archive.path.should eq('/path/to/my/archive/
|
11
|
+
archive.path.should eq('/path/to/my/archive/app-name-version.zip')
|
12
12
|
end
|
13
13
|
|
14
14
|
it 'extracts the application name from the path' do
|
15
|
-
archive.name.should eq('
|
15
|
+
archive.name.should eq('app-name')
|
16
16
|
end
|
17
17
|
|
18
18
|
it 'extracts the version from the path' do
|
@@ -20,7 +20,7 @@ describe Archive do
|
|
20
20
|
end
|
21
21
|
|
22
22
|
it 'returns the filename of the archive' do
|
23
|
-
archive.filename.should eq('
|
23
|
+
archive.filename.should eq('app-name-version.zip')
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
metadata
CHANGED
@@ -1,56 +1,55 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: beanstalkify
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 0
|
8
|
+
- 2
|
9
|
+
version: 0.0.2
|
6
10
|
platform: ruby
|
7
|
-
authors:
|
11
|
+
authors:
|
8
12
|
- Pranav Raja
|
9
13
|
autorequire:
|
10
14
|
bindir: bin
|
11
15
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ! '>='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '0'
|
16
|
+
|
17
|
+
date: 2013-08-05 00:00:00 +10:00
|
18
|
+
default_executable:
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
22
21
|
type: :runtime
|
22
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
segments:
|
27
|
+
- 0
|
28
|
+
version: "0"
|
29
|
+
name: aws-sdk
|
30
|
+
requirement: *id001
|
23
31
|
prerelease: false
|
24
|
-
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ! '>='
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '0'
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: rspec
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
|
-
requirements:
|
35
|
-
- - ! '>='
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: '0'
|
32
|
+
- !ruby/object:Gem::Dependency
|
38
33
|
type: :development
|
34
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - ">="
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
segments:
|
39
|
+
- 0
|
40
|
+
version: "0"
|
41
|
+
name: rspec
|
42
|
+
requirement: *id002
|
39
43
|
prerelease: false
|
40
|
-
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ! '>='
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: '0'
|
46
|
-
description: Create Amazon Elastic Beanstalk apps and deploy versions from the command
|
47
|
-
line
|
44
|
+
description: Create Amazon Elastic Beanstalk apps and deploy versions from the command line
|
48
45
|
email: rickdangerous1@gmail.com
|
49
|
-
executables:
|
46
|
+
executables:
|
50
47
|
- beanstalkify
|
51
48
|
extensions: []
|
49
|
+
|
52
50
|
extra_rdoc_files: []
|
53
|
-
|
51
|
+
|
52
|
+
files:
|
54
53
|
- .gitignore
|
55
54
|
- Gemfile
|
56
55
|
- Gemfile.lock
|
@@ -65,37 +64,36 @@ files:
|
|
65
64
|
- lib/beanstalkify/deploy.rb
|
66
65
|
- lib/beanstalkify/environment.rb
|
67
66
|
- lib/beanstalkify/version.rb
|
68
|
-
- test/application_spec.rb
|
69
67
|
- test/archive_spec.rb
|
70
|
-
|
71
|
-
- test/environment_spec.rb
|
68
|
+
has_rdoc: true
|
72
69
|
homepage: https://github.com/pranavraja/beanstalkify
|
73
|
-
licenses:
|
70
|
+
licenses:
|
74
71
|
- MIT
|
75
72
|
post_install_message:
|
76
73
|
rdoc_options: []
|
77
|
-
|
74
|
+
|
75
|
+
require_paths:
|
78
76
|
- lib
|
79
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
requirements:
|
88
|
-
- -
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
|
77
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
segments:
|
82
|
+
- 0
|
83
|
+
version: "0"
|
84
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
segments:
|
89
|
+
- 0
|
90
|
+
version: "0"
|
91
91
|
requirements: []
|
92
|
+
|
92
93
|
rubyforge_project:
|
93
|
-
rubygems_version: 1.
|
94
|
+
rubygems_version: 1.3.6
|
94
95
|
signing_key:
|
95
96
|
specification_version: 3
|
96
97
|
summary: Beanstalk automation for dummies
|
97
|
-
test_files:
|
98
|
-
- test/application_spec.rb
|
98
|
+
test_files:
|
99
99
|
- test/archive_spec.rb
|
100
|
-
- test/deploy_spec.rb
|
101
|
-
- test/environment_spec.rb
|
data/test/application_spec.rb
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
require './application'
|
2
|
-
require './environment'
|
3
|
-
|
4
|
-
describe Application do
|
5
|
-
it 'should deploy an application' do
|
6
|
-
#application = Application.new('64bit Amazon Linux running Node.js', [])
|
7
|
-
#application.deploy!('/Users/pmoney/tmp/App-64fc96e.zip', 'test-env')
|
8
|
-
end
|
9
|
-
end
|
data/test/deploy_spec.rb
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
require './deploy'
|
2
|
-
|
3
|
-
describe Deploy do
|
4
|
-
deploy = nil
|
5
|
-
before do
|
6
|
-
deploy = Deploy.new('/Users/pmoney/temp/foo-1.0.zip')
|
7
|
-
end
|
8
|
-
|
9
|
-
it 'should get the s3 bucket' do
|
10
|
-
#puts deploy.bucket
|
11
|
-
end
|
12
|
-
|
13
|
-
it 'should upload the application' do
|
14
|
-
#puts deploy.upload!
|
15
|
-
end
|
16
|
-
|
17
|
-
it 'should create a new environment with the application' do
|
18
|
-
#puts deploy.create!("test3", "64bit Amazon Linux running Node.js").data
|
19
|
-
end
|
20
|
-
|
21
|
-
it 'should get the status of an environment' do
|
22
|
-
#puts deploy.status("test3")
|
23
|
-
end
|
24
|
-
end
|