heroku-rails-saas 1.0.2 → 1.0.3
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/CHANGELOG +8 -2
- data/Gemfile.lock +6 -6
- data/README.md +4 -0
- data/heroku-rails-saas.gemspec +1 -1
- data/lib/heroku-rails-saas/config.rb +5 -0
- data/lib/heroku-rails-saas/runner.rb +14 -0
- data/lib/heroku-rails-saas/version.rb +1 -1
- data/lib/heroku/rails/tasks.rb +5 -0
- metadata +4 -5
- data/.bundle/config +0 -2
data/CHANGELOG
CHANGED
@@ -1,10 +1,16 @@
|
|
1
1
|
Heroku Rails SaaS
|
2
2
|
|
3
|
-
v1.0.
|
3
|
+
v1.0.3
|
4
|
+
============================================
|
5
|
+
Add formation settings for 2X dyno size support from heroku-api
|
6
|
+
Add rake task heroku:resize
|
7
|
+
|
8
|
+
|
9
|
+
v1.0.2
|
4
10
|
============================================
|
5
11
|
Fix error when setting configuration due to value being an integer instead of a string
|
6
12
|
Add #sync_exec and #async_exec, previous all #exec where async. #sync_exec allows us to control the order of execution
|
7
|
-
Fix error when configuation for addons because it do not consider
|
13
|
+
Fix error when configuation for addons because it do not consider addon tiers
|
8
14
|
|
9
15
|
v1.0.0
|
10
16
|
============================================
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
heroku-rails-saas (1.0.
|
5
|
-
heroku-api (~> 0.3.
|
4
|
+
heroku-rails-saas (1.0.3)
|
5
|
+
heroku-api (~> 0.3.13)
|
6
6
|
netrc (~> 0.7.7)
|
7
7
|
parallel (~> 0.6.2)
|
8
8
|
rails
|
@@ -52,9 +52,9 @@ GEM
|
|
52
52
|
debugger-ruby_core_source (1.2.0)
|
53
53
|
diff-lcs (1.1.3)
|
54
54
|
erubis (2.7.0)
|
55
|
-
excon (0.
|
56
|
-
heroku-api (0.3.
|
57
|
-
excon (~> 0.
|
55
|
+
excon (0.25.1)
|
56
|
+
heroku-api (0.3.13)
|
57
|
+
excon (~> 0.25.0)
|
58
58
|
hike (1.2.1)
|
59
59
|
i18n (0.6.0)
|
60
60
|
journey (1.0.4)
|
@@ -66,7 +66,7 @@ GEM
|
|
66
66
|
mime-types (1.19)
|
67
67
|
multi_json (1.3.4)
|
68
68
|
netrc (0.7.7)
|
69
|
-
parallel (0.6.
|
69
|
+
parallel (0.6.5)
|
70
70
|
polyglot (0.3.3)
|
71
71
|
rack (1.4.1)
|
72
72
|
rack-cache (1.2)
|
data/README.md
CHANGED
data/heroku-rails-saas.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.extra_rdoc_files = ["LICENSE", "README.md", "TODO", "CHANGELOG"]
|
17
17
|
|
18
18
|
gem.add_runtime_dependency "rails"
|
19
|
-
gem.add_runtime_dependency "heroku-api", "~> 0.3.
|
19
|
+
gem.add_runtime_dependency "heroku-api", "~> 0.3.13"
|
20
20
|
gem.add_runtime_dependency "netrc", "~> 0.7.7"
|
21
21
|
gem.add_runtime_dependency "parallel", "~> 0.6.2"
|
22
22
|
gem.add_runtime_dependency "rendezvous", "~> 0.0.2"
|
@@ -92,6 +92,11 @@ module HerokuRailsSaas
|
|
92
92
|
app_setting_hash("scale", app_env)
|
93
93
|
end
|
94
94
|
|
95
|
+
# pull out the formation setting hash for a particular app environment
|
96
|
+
def formation(app_env)
|
97
|
+
app_setting_hash("formation", app_env)
|
98
|
+
end
|
99
|
+
|
95
100
|
# return a list of collaborators for a particular app environment
|
96
101
|
def collaborators(app_env)
|
97
102
|
app_setting_array('collaborators', app_env)
|
@@ -144,6 +144,7 @@ module HerokuRailsSaas
|
|
144
144
|
_setup_config(local_name, remote_name)
|
145
145
|
_migrate(remote_name)
|
146
146
|
_scale(local_name, remote_name)
|
147
|
+
_formation(local_name, remote_name)
|
147
148
|
_restart(remote_name)
|
148
149
|
_maintenance(false, remote_name)
|
149
150
|
end
|
@@ -253,6 +254,12 @@ module HerokuRailsSaas
|
|
253
254
|
end
|
254
255
|
end
|
255
256
|
|
257
|
+
def formation
|
258
|
+
each_heroku_app do |local_name, remote_name|
|
259
|
+
_formation(local_name, remote_name)
|
260
|
+
end
|
261
|
+
end
|
262
|
+
|
256
263
|
def logs
|
257
264
|
each_heroku_app do |_, remote_name|
|
258
265
|
_logs(remote_name)
|
@@ -425,6 +432,13 @@ module HerokuRailsSaas
|
|
425
432
|
@displayer.labelize("Scaling ... #{Helper.green('OK')}")
|
426
433
|
end
|
427
434
|
|
435
|
+
def _formation(local_name, remote_name)
|
436
|
+
formation = @config.formation(local_name)
|
437
|
+
formation.each { |key, value| formation[key] = "#{value}X" }
|
438
|
+
heroku.put_formation(remote_name, formation)
|
439
|
+
@displayer.labelize("Formation... #{Helper.green('OK')}")
|
440
|
+
end
|
441
|
+
|
428
442
|
def _logs(remote_name)
|
429
443
|
url = heroku.get_logs(remote_name, {:tail => 1})
|
430
444
|
uri = URI.parse(url)
|
data/lib/heroku/rails/tasks.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: heroku-rails-saas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2013-
|
16
|
+
date: 2013-07-15 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: rails
|
@@ -38,7 +38,7 @@ dependencies:
|
|
38
38
|
requirements:
|
39
39
|
- - ~>
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 0.3.
|
41
|
+
version: 0.3.13
|
42
42
|
type: :runtime
|
43
43
|
prerelease: false
|
44
44
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -46,7 +46,7 @@ dependencies:
|
|
46
46
|
requirements:
|
47
47
|
- - ~>
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 0.3.
|
49
|
+
version: 0.3.13
|
50
50
|
- !ruby/object:Gem::Dependency
|
51
51
|
name: netrc
|
52
52
|
requirement: !ruby/object:Gem::Requirement
|
@@ -137,7 +137,6 @@ extra_rdoc_files:
|
|
137
137
|
- TODO
|
138
138
|
- CHANGELOG
|
139
139
|
files:
|
140
|
-
- .bundle/config
|
141
140
|
- .gitignore
|
142
141
|
- .rspec
|
143
142
|
- .rvmrc
|
data/.bundle/config
DELETED