demrec 0.0.6 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +33 -0
- data/lib/demrec/recipes/db.rake +1 -1
- data/lib/demrec/recipes/db.rb +1 -1
- data/lib/demrec/version.rb +1 -1
- metadata +2 -1
data/README.md
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
Demonstraion of how to create your own cap/rake tasks gem
|
2
|
+
=========================================================
|
3
|
+
|
4
|
+
In this demo we'll create a rubygem called 'demrec'.
|
5
|
+
|
6
|
+
It will contain tasks for rake and capistrano that can easily be
|
7
|
+
shared between multiple projects.
|
8
|
+
|
9
|
+
Start a new gem
|
10
|
+
---------------
|
11
|
+
|
12
|
+
gem install bundler
|
13
|
+
bundle gem demrec
|
14
|
+
# update demrec.gemspec
|
15
|
+
rake install
|
16
|
+
|
17
|
+
|
18
|
+
Add recipes
|
19
|
+
-----------
|
20
|
+
|
21
|
+
mkdir demrec/lib/demrec/recipes
|
22
|
+
touch deprec/lib/demrec/db.{rake,rb} # Add tasks later
|
23
|
+
|
24
|
+
# Update lib/demrec.rb
|
25
|
+
if defined?(Capistrano)
|
26
|
+
Dir.glob("#{File.dirname(__FILE__)}/deprec/recipes/*.rb").each { |t|
|
27
|
+
require t
|
28
|
+
}
|
29
|
+
elsif defined?(Rake)
|
30
|
+
Dir.glob("#{File.dirname(__FILE__)}/deprec/recipes/*.rake").each { |t|
|
31
|
+
import t
|
32
|
+
}
|
33
|
+
end
|
data/lib/demrec/recipes/db.rake
CHANGED
data/lib/demrec/recipes/db.rb
CHANGED
data/lib/demrec/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: demrec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0
|
5
|
+
version: 0.1.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Mike Bailey
|
@@ -35,6 +35,7 @@ extra_rdoc_files: []
|
|
35
35
|
files:
|
36
36
|
- .gitignore
|
37
37
|
- Gemfile
|
38
|
+
- README.md
|
38
39
|
- Rakefile
|
39
40
|
- demrec.gemspec
|
40
41
|
- lib/demrec.rb
|