medea-generators 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,13 +29,8 @@ module Medea
29
29
  def init_jasondb
30
30
  #we can't create the topic, but we can create database.yml
31
31
  template "database.yml", "config/database.yml"
32
+ template "jasondb.rb", "config/initializers/jasondb.rb"
32
33
 
33
- # #we will also deploy templates at this point.
34
- # jason_base = "http://#{@user}:#{@pass}@rest.jason.com/"
35
- # topics = [@topic, "#{@topic}-dev", "#{@topic}-test"]
36
- # for t in topics
37
- # Medea::setup_templates "#{jason_base}#{t}/"
38
- # end
39
34
  end
40
35
  end
41
36
  end
@@ -0,0 +1,3 @@
1
+ #Push the latest version of the templates to your topic.
2
+ #This will automatically push to whatever configuration you're using (dev, test or production)
3
+ Medea::setup_templates
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "medea-generators"
6
- s.version = "0.1.0"
6
+ s.version = "0.2.0"
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Michael Jensen"]
9
9
  s.email = ["michaelj@jasondb.com"]
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 1
7
+ - 2
8
8
  - 0
9
- version: 0.1.0
9
+ version: 0.2.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Michael Jensen
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-01-18 00:00:00 +11:00
17
+ date: 2011-01-19 00:00:00 +11:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -64,6 +64,7 @@ files:
64
64
  - lib/generators/medea.rb
65
65
  - lib/generators/medea/init/init_generator.rb
66
66
  - lib/generators/medea/init/templates/database.yml
67
+ - lib/generators/medea/init/templates/jasondb.rb
67
68
  - lib/generators/medea/scaffold/USAGE
68
69
  - lib/generators/medea/scaffold/scaffold_generator.rb
69
70
  - lib/generators/medea/scaffold/templates/actions/create.rb