eycap 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +3 -0
- data/Gemfile.lock +37 -0
- data/History.txt +4 -0
- data/README.markdown +2 -1
- data/Rakefile +15 -1
- data/eycap.gemspec +4 -1
- data/lib/eycap/recipes/unicorn.rb +1 -1
- data/lib/eycap/version.rb +1 -1
- data/test/eycap_test.rb +15 -0
- data/test/fixtures/recipes/default.rb +14 -0
- data/test/minitest_helper.rb +27 -0
- metadata +58 -6
- data/test/test_eycap.rb +0 -11
- data/test/test_helper.rb +0 -2
data/.travis.yml
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
eycap (0.6.1)
|
5
|
+
capistrano (>= 2.2.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: http://rubygems.org/
|
9
|
+
specs:
|
10
|
+
capistrano (2.13.3)
|
11
|
+
highline
|
12
|
+
net-scp (>= 1.0.0)
|
13
|
+
net-sftp (>= 2.0.0)
|
14
|
+
net-ssh (>= 2.0.14)
|
15
|
+
net-ssh-gateway (>= 1.1.0)
|
16
|
+
highline (1.6.15)
|
17
|
+
minitest (3.4.0)
|
18
|
+
minitest-capistrano (0.1.3)
|
19
|
+
capistrano (~> 2.9)
|
20
|
+
minitest
|
21
|
+
net-scp (1.0.4)
|
22
|
+
net-ssh (>= 1.99.1)
|
23
|
+
net-sftp (2.0.5)
|
24
|
+
net-ssh (>= 2.0.9)
|
25
|
+
net-ssh (2.5.2)
|
26
|
+
net-ssh-gateway (1.1.0)
|
27
|
+
net-ssh (>= 1.99.1)
|
28
|
+
rake (0.9.2.2)
|
29
|
+
|
30
|
+
PLATFORMS
|
31
|
+
ruby
|
32
|
+
|
33
|
+
DEPENDENCIES
|
34
|
+
eycap!
|
35
|
+
minitest
|
36
|
+
minitest-capistrano
|
37
|
+
rake
|
data/History.txt
CHANGED
data/README.markdown
CHANGED
data/Rakefile
CHANGED
@@ -1,2 +1,16 @@
|
|
1
|
+
# The bundler rake tasks help automate the distribution of this gem.
|
1
2
|
require 'bundler'
|
2
|
-
Bundler::GemHelper.install_tasks
|
3
|
+
Bundler::GemHelper.install_tasks
|
4
|
+
|
5
|
+
# Define a default 'rake' alias for minitest so that when you type
|
6
|
+
# rake in the root of the <tt>eycap</tt> folder you will run the tests.
|
7
|
+
# https://github.com/jimweirich/rake/blob/master/lib/rake/testtask.rb
|
8
|
+
|
9
|
+
require "rake/testtask"
|
10
|
+
|
11
|
+
Rake::TestTask.new do |t|
|
12
|
+
t.libs << "test"
|
13
|
+
t.pattern = "test/**/*_test.rb"
|
14
|
+
end
|
15
|
+
|
16
|
+
task :default => :test
|
data/eycap.gemspec
CHANGED
@@ -16,5 +16,8 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.version = Eycap::VERSION
|
17
17
|
|
18
18
|
gem.add_dependency "capistrano", ">= 2.2.0"
|
19
|
-
end
|
20
19
|
|
20
|
+
gem.add_development_dependency "rake"
|
21
|
+
gem.add_development_dependency "minitest"
|
22
|
+
gem.add_development_dependency "minitest-capistrano"
|
23
|
+
end
|
@@ -48,7 +48,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
48
48
|
Deploys app gracefully with USR2 and unicorn.rb combo
|
49
49
|
DESC
|
50
50
|
task :deploy, :roles => [:app], :except => {:unicorn => false} do
|
51
|
-
|
51
|
+
run "/engineyard/bin/unicorn #{application} deploy"
|
52
52
|
end
|
53
53
|
end
|
54
54
|
end
|
data/lib/eycap/version.rb
CHANGED
data/test/eycap_test.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'minitest_helper'
|
2
|
+
|
3
|
+
class TestEycap < MiniTest::Unit::TestCase
|
4
|
+
|
5
|
+
describe "first test" do
|
6
|
+
Capistrano::Configuration.instance = Capistrano::Configuration.new
|
7
|
+
load_capistrano_recipe(Capistrano::Recipes::Default)
|
8
|
+
|
9
|
+
it 'loads the specified recipe into the instance configuration' do
|
10
|
+
Capistrano::Configuration.instance.must_have_task "default"
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'capistrano'
|
2
|
+
|
3
|
+
module Capistrano::Recipes
|
4
|
+
module Default
|
5
|
+
def self.load_into(configuration)
|
6
|
+
configuration.load do
|
7
|
+
task :default do
|
8
|
+
set :message, 'this is a fixture class of a default Capistrano object'
|
9
|
+
message
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Let's include the eycap gem.
|
2
|
+
# FIXME: when you uncomment the require to bring in eycap it starts to error:
|
3
|
+
#
|
4
|
+
# capistrano/lib/capistrano/configuration/loading.rb:18:
|
5
|
+
# in `instance': Please require this file from within a Capistrano recipe (LoadError)
|
6
|
+
#
|
7
|
+
# require File.dirname(__FILE__) + '/../lib/eycap'
|
8
|
+
|
9
|
+
# This is a short and sweet way to bootstrap minitest.
|
10
|
+
# It also lets them keep it under a "service" if they want to make changes to
|
11
|
+
# the <tt>autorun</tt> method.
|
12
|
+
# https://github.com/seattlerb/minitest/blob/master/lib/minitest/autorun.rb
|
13
|
+
|
14
|
+
require 'minitest/autorun'
|
15
|
+
|
16
|
+
# This library has assertions and expectations already written that can help
|
17
|
+
# to test capistrano recipes.
|
18
|
+
|
19
|
+
require 'minitest-capistrano'
|
20
|
+
|
21
|
+
# Let's add capistrano, since that's what we need to deploy.
|
22
|
+
|
23
|
+
require 'capistrano'
|
24
|
+
|
25
|
+
# Load a default fixture capistrano object.
|
26
|
+
|
27
|
+
require File.expand_path(File.join(File.dirname(__FILE__), 'fixtures','recipes','default'))
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eycap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-09-
|
13
|
+
date: 2012-09-21 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: capistrano
|
@@ -28,6 +28,54 @@ dependencies:
|
|
28
28
|
- - ! '>='
|
29
29
|
- !ruby/object:Gem::Version
|
30
30
|
version: 2.2.0
|
31
|
+
- !ruby/object:Gem::Dependency
|
32
|
+
name: rake
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
34
|
+
none: false
|
35
|
+
requirements:
|
36
|
+
- - ! '>='
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '0'
|
39
|
+
type: :development
|
40
|
+
prerelease: false
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ! '>='
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: minitest
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ! '>='
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: minitest-capistrano
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
67
|
+
requirements:
|
68
|
+
- - ! '>='
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
71
|
+
type: :development
|
72
|
+
prerelease: false
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ! '>='
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '0'
|
31
79
|
description: Capistrano recipes for the Engine Yard Managed platform.
|
32
80
|
email:
|
33
81
|
- appsupport@engineyard.com
|
@@ -36,7 +84,9 @@ extensions: []
|
|
36
84
|
extra_rdoc_files: []
|
37
85
|
files:
|
38
86
|
- .gitignore
|
87
|
+
- .travis.yml
|
39
88
|
- Gemfile
|
89
|
+
- Gemfile.lock
|
40
90
|
- History.txt
|
41
91
|
- README.markdown
|
42
92
|
- Rakefile
|
@@ -69,8 +119,9 @@ files:
|
|
69
119
|
- lib/eycap/recipes/tomcat.rb
|
70
120
|
- lib/eycap/recipes/unicorn.rb
|
71
121
|
- lib/eycap/version.rb
|
72
|
-
- test/
|
73
|
-
- test/
|
122
|
+
- test/eycap_test.rb
|
123
|
+
- test/fixtures/recipes/default.rb
|
124
|
+
- test/minitest_helper.rb
|
74
125
|
homepage: http://github.com/engineyard/eycap
|
75
126
|
licenses: []
|
76
127
|
post_install_message:
|
@@ -97,5 +148,6 @@ specification_version: 3
|
|
97
148
|
summary: Recipes that help automate the processes of the Engine Yard stack for users
|
98
149
|
of the Managed platform.
|
99
150
|
test_files:
|
100
|
-
- test/
|
101
|
-
- test/
|
151
|
+
- test/eycap_test.rb
|
152
|
+
- test/fixtures/recipes/default.rb
|
153
|
+
- test/minitest_helper.rb
|
data/test/test_eycap.rb
DELETED
data/test/test_helper.rb
DELETED