github_heroku_deployer 0.0.5 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in heroku_app_deployer.gemspec
3
+ # Specify your gem's dependencies in github_heroku_deployer.gemspec
4
4
  gemspec
data/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # Github Heroku Deployer
2
2
 
3
- Ruby gem to deploy Github repos to Heroku
3
+ Ruby gem to deploy public and private Github repos to Heroku
4
4
 
5
5
 
6
6
  ## Current Version
7
7
 
8
- 0.0.1
8
+ 0.1.0
9
9
 
10
10
 
11
11
  ## Requirements
@@ -67,7 +67,7 @@ Deploy:
67
67
  GithubHerokuDeployer.deploy
68
68
  ```
69
69
 
70
- TODO Override defaults:
70
+ Override defaults:
71
71
 
72
72
  ```ruby
73
73
  GithubHerokuDeployer.deploy(github_repo: github_repo)
@@ -77,6 +77,7 @@ TODO Override defaults:
77
77
  ## Authors
78
78
 
79
79
  * Jessica Lynn Suttles / [@jlsuttles](https://github.com/jlsuttles)
80
+ * Bookis Smuin / [@bookis](https://github.com/bookis)
80
81
 
81
82
 
82
83
  ## Contributing
@@ -93,6 +94,21 @@ If you find bugs, have feature requests or questions, please
93
94
  [file an issue](https://github.com/G5/github_heroku_deployer/issues).
94
95
 
95
96
 
97
+ ## Specs
98
+
99
+ Export environment variables
100
+ ```bash
101
+ export GITHUB_REPO=git@github.com:G5/static-sinatra-prototype.git
102
+ export HEROKU_API_KEY=heroku_api_key
103
+ export HEROKU_APP_NAME=static-sinatra-prototype
104
+ export HEROKU_REPO=git@heroku.com:static-sinatra-prototype.git
105
+ export HEROKU_USERNAME=heroku_username
106
+ export ID_RSA=id_rsa
107
+ export PRIVATE_GITHUB_REPO=git@github.com:g5search/g5-client-location.git
108
+ export PUBLIC_GITHUB_REPO=git@github.com:G5/static-sinatra-prototype.git
109
+ ```
110
+
111
+
96
112
  ## License
97
113
 
98
114
  Copyright (c) 2012 G5
@@ -35,6 +35,10 @@ module GithubHerokuDeployer
35
35
  heroku.post_ps(@heroku_app_name, command)
36
36
  end
37
37
 
38
+ def config_set(config_vars)
39
+ heroku.put_config_vars(@heroku_app_name, config_vars)
40
+ end
41
+
38
42
  def delete_app
39
43
  heroku.delete_app(@heroku_app_name)
40
44
  end
@@ -1,3 +1,3 @@
1
1
  module GithubHerokuDeployer
2
- VERSION = "0.0.5"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -50,6 +50,12 @@ module GithubHerokuDeployer
50
50
  Heroku.new(options).run(command)
51
51
  end
52
52
 
53
+ def heroku_config_set(values, options={})
54
+ options = configuration.merge(options)
55
+ validate_options(options)
56
+ Heroku.new(options).config_set(values)
57
+ end
58
+
53
59
  def validate_options(options)
54
60
  configuration.validate_presence(options)
55
61
  end
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.0.5
4
+ version: 0.1.0
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: 2012-10-31 00:00:00.000000000 Z
12
+ date: 2012-11-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: heroku-api
@@ -162,7 +162,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
162
162
  version: '0'
163
163
  segments:
164
164
  - 0
165
- hash: 3203415681699428382
165
+ hash: 2442779602042036265
166
166
  required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  none: false
168
168
  requirements:
@@ -171,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
171
171
  version: '0'
172
172
  segments:
173
173
  - 0
174
- hash: 3203415681699428382
174
+ hash: 2442779602042036265
175
175
  requirements: []
176
176
  rubyforge_project:
177
177
  rubygems_version: 1.8.24