heroku-rails 0.0.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +10 -0
- data/Gemfile.lock +1 -1
- data/README.md +80 -37
- data/TODO +5 -2
- data/heroku-rails.gemspec +3 -3
- data/lib/generators/heroku/callbacks_generator.rb +15 -0
- data/lib/generators/heroku/config_generator.rb +15 -0
- data/lib/generators/templates/heroku.rake +24 -0
- data/lib/generators/templates/heroku.yml +51 -0
- data/lib/heroku-rails.rb +3 -9
- data/lib/heroku/rails/heroku_config.rb +69 -0
- data/lib/heroku/rails/heroku_runner.rb +242 -0
- data/lib/heroku/rails/railtie.rb +9 -0
- data/lib/heroku/rails/tasks.rb +129 -173
- data/spec/fixtures/heroku-config.yml +48 -0
- data/spec/heroku/rails/heroku_config_spec.rb +131 -0
- data/spec/heroku/rails/heroku_runner_spec.rb +1 -0
- data/spec/spec_helper.rb +18 -0
- metadata +21 -9
- data/lib/heroku/rails/config.rb +0 -42
- data/lib/templates/heroku.example.yml +0 -5
@@ -0,0 +1 @@
|
|
1
|
+
# needz moar test!
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'heroku-rails'
|
2
|
+
require 'bundler/setup'
|
3
|
+
|
4
|
+
|
5
|
+
RSpec.configure do |c|
|
6
|
+
# setup fixtures path
|
7
|
+
c.before(:all) do
|
8
|
+
@fixture_path = Pathname.new(File.join(File.dirname(__FILE__), "/fixtures"))
|
9
|
+
raise "Fixture folder not found: #{@fixture_path}" unless @fixture_path.directory?
|
10
|
+
end
|
11
|
+
|
12
|
+
# returns the file path of a fixture setting file
|
13
|
+
def config_path(filename)
|
14
|
+
@fixture_path.join(filename)
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: heroku-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
+
- 2
|
8
9
|
- 0
|
9
|
-
|
10
|
-
version: 0.0.1
|
10
|
+
version: 0.2.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Elijah Miller
|
@@ -49,7 +49,7 @@ dependencies:
|
|
49
49
|
- 0
|
50
50
|
version: "2.0"
|
51
51
|
requirement: *id002
|
52
|
-
description: Manage multiple Heroku instances/apps for a single Rails app using Rake
|
52
|
+
description: Manage multiple Heroku instances/apps for a single Rails app using Rake. It's the Capistrano for Heroku, without the suck.
|
53
53
|
email: railsjedi@gmail.com
|
54
54
|
executables: []
|
55
55
|
|
@@ -61,10 +61,19 @@ extra_rdoc_files:
|
|
61
61
|
- TODO
|
62
62
|
- CHANGELOG
|
63
63
|
files:
|
64
|
-
- lib/heroku/
|
64
|
+
- lib/generators/heroku/callbacks_generator.rb
|
65
|
+
- lib/generators/heroku/config_generator.rb
|
66
|
+
- lib/generators/templates/heroku.rake
|
67
|
+
- lib/generators/templates/heroku.yml
|
68
|
+
- lib/heroku/rails/heroku_config.rb
|
69
|
+
- lib/heroku/rails/heroku_runner.rb
|
70
|
+
- lib/heroku/rails/railtie.rb
|
65
71
|
- lib/heroku/rails/tasks.rb
|
66
72
|
- lib/heroku-rails.rb
|
67
|
-
-
|
73
|
+
- spec/fixtures/heroku-config.yml
|
74
|
+
- spec/heroku/rails/heroku_config_spec.rb
|
75
|
+
- spec/heroku/rails/heroku_runner_spec.rb
|
76
|
+
- spec/spec_helper.rb
|
68
77
|
- heroku-rails.gemspec
|
69
78
|
- Gemfile
|
70
79
|
- Gemfile.lock
|
@@ -106,6 +115,9 @@ rubyforge_project: none
|
|
106
115
|
rubygems_version: 1.3.7
|
107
116
|
signing_key:
|
108
117
|
specification_version: 3
|
109
|
-
summary:
|
110
|
-
test_files:
|
111
|
-
|
118
|
+
summary: Deployment and configuration tools for Heroku/Rails
|
119
|
+
test_files:
|
120
|
+
- spec/fixtures/heroku-config.yml
|
121
|
+
- spec/heroku/rails/heroku_config_spec.rb
|
122
|
+
- spec/heroku/rails/heroku_runner_spec.rb
|
123
|
+
- spec/spec_helper.rb
|
data/lib/heroku/rails/config.rb
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
module Heroku
|
2
|
-
module Rails
|
3
|
-
class Config
|
4
|
-
|
5
|
-
attr_accessor :settings
|
6
|
-
|
7
|
-
def initialize(config_filepath)
|
8
|
-
if File.exists?(config_filepath)
|
9
|
-
self.settings = YAML.load_file(HEROKU_CONFIG_FILE)
|
10
|
-
else
|
11
|
-
self.settings = {}
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
# pull out the stack setting for a particular app environment
|
16
|
-
def stack(app = 'all')
|
17
|
-
# TODO
|
18
|
-
end
|
19
|
-
|
20
|
-
# pull out the config setting hash for a particular app environment
|
21
|
-
def config(app = 'all')
|
22
|
-
# TODO
|
23
|
-
end
|
24
|
-
|
25
|
-
# return a list of collaborators for a particular app environment
|
26
|
-
def collaborators(app = 'all')
|
27
|
-
# TODO
|
28
|
-
end
|
29
|
-
|
30
|
-
# return a list of domains for a particular app environment
|
31
|
-
def domains(app = 'all')
|
32
|
-
# TODO
|
33
|
-
end
|
34
|
-
|
35
|
-
# return a list of addons for a particular app environment
|
36
|
-
def addons(app = 'addons')
|
37
|
-
# TODO
|
38
|
-
end
|
39
|
-
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|