github_heroku_deployer 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +4 -0
- data/README.md +4 -1
- data/github_heroku_deployer.gemspec +1 -0
- data/lib/github_heroku_deployer.rb +7 -1
- data/lib/github_heroku_deployer/heroku.rb +4 -0
- data/lib/github_heroku_deployer/version.rb +1 -1
- data/spec/spec_helper.rb +9 -1
- metadata +19 -2
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -1,11 +1,14 @@
|
|
1
1
|
# Github Heroku Deployer
|
2
2
|
|
3
|
+
[![Build Status](https://travis-ci.org/G5/github_heroku_deployer.png?branch=master)](https://travis-ci.org/G5/github_heroku_deployer)
|
4
|
+
[![Code Climate](https://codeclimate.com/github/G5/github_heroku_deployer.png)](https://codeclimate.com/github/G5/github_heroku_deployer)
|
5
|
+
|
3
6
|
Ruby gem to deploy public and private Github repos to Heroku
|
4
7
|
|
5
8
|
|
6
9
|
## Current Version
|
7
10
|
|
8
|
-
0.2.
|
11
|
+
0.2.1
|
9
12
|
|
10
13
|
|
11
14
|
## Requirements
|
@@ -19,6 +19,7 @@ Gem::Specification.new do |gem|
|
|
19
19
|
gem.add_dependency "git", "~> 1.2.5"
|
20
20
|
gem.add_dependency "git-ssh-wrapper", "~> 0.1.0"
|
21
21
|
|
22
|
+
gem.add_development_dependency "simplecov", "~> 0.7.1"
|
22
23
|
gem.add_development_dependency "rspec", "~> 2.11.0"
|
23
24
|
gem.add_development_dependency "guard-rspec", "~> 2.1.0"
|
24
25
|
gem.add_development_dependency "rb-fsevent", "~> 0.9.2"
|
@@ -7,7 +7,7 @@ require "github_heroku_deployer/version"
|
|
7
7
|
|
8
8
|
module GithubHerokuDeployer
|
9
9
|
class << self
|
10
|
-
# A GithubHerokuDeployer configuration object. Must act like a hash and
|
10
|
+
# A GithubHerokuDeployer configuration object. Must act like a hash and
|
11
11
|
# return sensible values for all GithubHerokuDeployer configuration options.
|
12
12
|
#
|
13
13
|
# @see GithubHerokuDeployer::Configuration.
|
@@ -74,6 +74,12 @@ module GithubHerokuDeployer
|
|
74
74
|
Heroku.new(options).addon_add(addon)
|
75
75
|
end
|
76
76
|
|
77
|
+
def heroku_post_ps_scale(process, quantity, options={})
|
78
|
+
options = configuration.merge(options)
|
79
|
+
validate_options(options)
|
80
|
+
Heroku.new(options).post_ps_scale(process, quantity)
|
81
|
+
end
|
82
|
+
|
77
83
|
def validate_options(options)
|
78
84
|
configuration.validate_presence(options)
|
79
85
|
end
|
@@ -54,6 +54,10 @@ module GithubHerokuDeployer
|
|
54
54
|
heroku.delete_addon(@heroku_app_name, addon)
|
55
55
|
end
|
56
56
|
|
57
|
+
def post_ps_scale(process, quantity)
|
58
|
+
heroku.post_ps_scale(@heroku_app_name, process, quantity)
|
59
|
+
end
|
60
|
+
|
57
61
|
# def add_deployhooks_http(url)
|
58
62
|
# add_addon("deployhooks:http", url: url)
|
59
63
|
# end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github_heroku_deployer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-03-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: heroku-api
|
@@ -59,6 +59,22 @@ dependencies:
|
|
59
59
|
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 0.1.0
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: simplecov
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 0.7.1
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 0.7.1
|
62
78
|
- !ruby/object:Gem::Dependency
|
63
79
|
name: rspec
|
64
80
|
requirement: !ruby/object:Gem::Requirement
|
@@ -131,6 +147,7 @@ extensions: []
|
|
131
147
|
extra_rdoc_files: []
|
132
148
|
files:
|
133
149
|
- .gitignore
|
150
|
+
- .travis.yml
|
134
151
|
- Gemfile
|
135
152
|
- Guardfile
|
136
153
|
- LICENSE
|