demrec 0.0.6 → 0.1.0

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/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
@@ -3,7 +3,7 @@ namespace :demrec do
3
3
 
4
4
  desc "Backup the database"
5
5
  task :backup do
6
- puts "Backing up DB with rake!"
6
+ puts "Backing up database with rake"
7
7
  end
8
8
  end
9
9
  end
@@ -4,7 +4,7 @@ Capistrano::Configuration.instance(:must_exist).load do
4
4
 
5
5
  desc "Backup the database"
6
6
  task :backup do
7
- puts "Capistrano is backing up db"
7
+ puts "Backing up database with Capistrano"
8
8
  end
9
9
 
10
10
  end
@@ -1,3 +1,3 @@
1
1
  module Demrec
2
- VERSION = "0.0.6"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: demrec
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.6
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