dynosaur 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dynosaur/process/heroku.rb +6 -2
- data/lib/dynosaur/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21df6ff47fba67ab8fd8b9e843e8b7cd41d22fb4
|
4
|
+
data.tar.gz: 653d928bf65797e79c32d96439659664935f6026
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 921f9e9b397fed05edbe14041b2c437d5638dccdd3db11b8333e44179bca2d4a521ac1363a31a4ec3c8d62e481dc908a9531553dde5b61414c6b298a2519ab91
|
7
|
+
data.tar.gz: 0b157fa6bc7b6b72903d7102a6adadf50f04fb115f0d29abcae7d4b7fa5dfc4f8a820c3141e4f391f97fdd3f9828ecd3eddbf801fb54b1e17f04d5e1adcfe02b
|
@@ -4,12 +4,14 @@ require 'dynosaur/client/heroku_client'
|
|
4
4
|
module Dynosaur
|
5
5
|
class Process
|
6
6
|
class Heroku < Process
|
7
|
-
# Valid dyno sizes under Heroku's new pricing model
|
8
7
|
module Size
|
9
8
|
STANDARD_1X = 'standard-1X'.freeze
|
10
9
|
STANDARD_2X = 'standard-2X'.freeze
|
11
10
|
PERFORMANCE_M = 'performance-m'.freeze
|
12
11
|
PERFORMANCE_L = 'performance-l'.freeze
|
12
|
+
PRIVATE_S = 'Private-S'.freeze
|
13
|
+
PRIVATE_M = 'Private-M'.freeze
|
14
|
+
PRIVATE_L = 'Private-L'.freeze
|
13
15
|
end
|
14
16
|
|
15
17
|
# Valid dyno sizes under Heroku's old pricing model
|
@@ -23,6 +25,7 @@ module Dynosaur
|
|
23
25
|
app_name = Dynosaur::Client::HerokuClient.app_name
|
24
26
|
client = Dynosaur::Client::HerokuClient.client
|
25
27
|
create_opts = { command: rake_command.to_s, attach: false }
|
28
|
+
create_opts[:attach] = attach if attach
|
26
29
|
create_opts[:size] = size if size
|
27
30
|
response = client.dyno.create(app_name, create_opts)
|
28
31
|
response['name']
|
@@ -30,10 +33,11 @@ module Dynosaur
|
|
30
33
|
|
31
34
|
private
|
32
35
|
|
33
|
-
attr_reader :size
|
36
|
+
attr_reader :size, :attach
|
34
37
|
|
35
38
|
def after_initialize(opts)
|
36
39
|
@size = opts[:size]
|
40
|
+
@attach = opts[:attach]
|
37
41
|
end
|
38
42
|
end
|
39
43
|
end
|
data/lib/dynosaur/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dynosaur
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Collier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: platform-api
|
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
156
156
|
version: '0'
|
157
157
|
requirements: []
|
158
158
|
rubyforge_project:
|
159
|
-
rubygems_version: 2.6.
|
159
|
+
rubygems_version: 2.6.10
|
160
160
|
signing_key:
|
161
161
|
specification_version: 4
|
162
162
|
summary: Run a rake task in a separate process (locally or on Heroku)
|