pogo 2.39.2.3 → 2.39.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: da0e8f20f39a2b0ea3b8deea03e5b494242816d1
4
- data.tar.gz: 7c6f9d25184e4e20e5fd05abeabf3cd931b3ebd4
3
+ metadata.gz: d55cc8b1ab326a3dbca447e909a1e65f38bdadb7
4
+ data.tar.gz: d82ed91ddc15ce4fb647baf3045168c026138c55
5
5
  SHA512:
6
- metadata.gz: 5dc581cce302d94009625d9b6c3722ff6190efd82be7ebd31d5a26fe91243055bd7513931d2574f5a8ed831e4e48f3811a6967c91ae12b56ef70ff72a70abe76
7
- data.tar.gz: 8505a23b9490ad351de6fa3efaad7443c9ecd9e8c26e031d8e5c01e6a54e5491e45d2e8c0726e9d4508030fe18a77d399c14b99a4f7afcf435243b1ab5274c7c
6
+ metadata.gz: df651f66a679a87ef4f7e98ab22173a9aafb4b48e76581401f949f593eaf601997f376dae66533288e34343f2145b80b412631850be7816fdba6619843fcce58
7
+ data.tar.gz: 4df4526ad41a792c70f0b13ff0ba084114787fda388e67384c01ae4a60f2acf237cb9f9bc67e41efe9012b385850909c51ecf1313f895302ad2051c96a74186a
data/bin/pogo CHANGED
@@ -7,6 +7,7 @@ ENV['HEROKU_STATUS_HOST'] ||= 'status.pogoapp.com'
7
7
  ENV['HEROKU_GIT_HOST'] ||= 'git.pogoapp.com'
8
8
  ENV['HEROKU_SSL_VERIFY'] ||= 'disable' # StartCom cert + RestClient = :(
9
9
  ENV['CISAURUS_HOST'] ||= 'https://cizoa.pogoapp.com'
10
+ ENV['SSL_DOCTOR_URL'] ||= 'https://ssl-doctor.pogoapp.com'
10
11
 
11
12
  # resolve bin path, ignoring symlinks
12
13
  require "pathname"
@@ -1,25 +1,25 @@
1
1
  class Heroku::Client
2
2
  def ssl_endpoint_add(app, pem, key)
3
- json_decode(post("apps/#{app}/ssl-endpoints", :accept => :json, :pem => pem, :key => key).to_s)
3
+ json_decode(post("apps/#{escape app}/ssl-endpoints", :accept => :json, :pem => pem, :key => key).to_s)
4
4
  end
5
5
 
6
6
  def ssl_endpoint_info(app, cname)
7
- json_decode(get("apps/#{app}/ssl-endpoints/#{escape(cname)}", :accept => :json).to_s)
7
+ json_decode(get("apps/#{escape app}/ssl-endpoints/#{escape(cname)}", :accept => :json).to_s)
8
8
  end
9
9
 
10
10
  def ssl_endpoint_list(app)
11
- json_decode(get("apps/#{app}/ssl-endpoints", :accept => :json).to_s)
11
+ json_decode(get("apps/#{escape app}/ssl-endpoints", :accept => :json).to_s)
12
12
  end
13
13
 
14
14
  def ssl_endpoint_remove(app, cname)
15
- json_decode(delete("apps/#{app}/ssl-endpoints/#{escape(cname)}", :accept => :json).to_s)
15
+ json_decode(delete("apps/#{escape app}/ssl-endpoints/#{escape(cname)}", :accept => :json).to_s)
16
16
  end
17
17
 
18
18
  def ssl_endpoint_rollback(app, cname)
19
- json_decode(post("apps/#{app}/ssl-endpoints/#{escape(cname)}/rollback", :accept => :json).to_s)
19
+ json_decode(post("apps/#{escape app}/ssl-endpoints/#{escape(cname)}/rollback", :accept => :json).to_s)
20
20
  end
21
21
 
22
22
  def ssl_endpoint_update(app, cname, pem, key)
23
- json_decode(put("apps/#{app}/ssl-endpoints/#{escape(cname)}", :accept => :json, :pem => pem, :key => key).to_s)
23
+ json_decode(put("apps/#{escape app}/ssl-endpoints/#{escape(cname)}", :accept => :json, :pem => pem, :key => key).to_s)
24
24
  end
25
25
  end
@@ -193,7 +193,7 @@ module Heroku
193
193
  [ command_instance, command[:method] ]
194
194
  else
195
195
  error([
196
- "`#{cmd}` is not a heroku command.",
196
+ "`#{cmd}` is not a pogoapp command.",
197
197
  suggestion(cmd, commands.keys + command_aliases.keys),
198
198
  "See `pogo help` for a list of available commands."
199
199
  ].compact.join("\n"))
@@ -134,7 +134,7 @@ module Heroku::Command
134
134
  case type_matches.length
135
135
  when 0 then
136
136
  error([
137
- "`#{addon}` is not a heroku add-on.",
137
+ "`#{addon}` is not a pogoapp add-on.",
138
138
  suggestion(addon, addon_names + addon_types),
139
139
  "See `pogo addons:list` for all available addons."
140
140
  ].compact.join("\n"))
@@ -166,7 +166,7 @@ module Heroku::Command
166
166
  error("Addon not installed: #{addon}")
167
167
  else
168
168
  error([
169
- "`#{addon}` is not a heroku add-on.",
169
+ "`#{addon}` is not a pogoapp add-on.",
170
170
  suggestion(addon, addon_names + addon_names.map {|name| name.split(':').first}.uniq),
171
171
  "See `pogo addons:list` for all available addons."
172
172
  ].compact.join("\n"))
@@ -188,7 +188,8 @@ class Heroku::Command::Certs < Heroku::Command::Base
188
188
 
189
189
  def read_crt_and_key_through_ssl_doctor(action_text = nil)
190
190
  crt_and_key = post_to_ssl_doctor("resolve-chain-and-key", action_text)
191
- Heroku::OkJson.decode(crt_and_key).values_at("pem", "key")
191
+ #Heroku::OkJson.decode(crt_and_key).values_at("pem", "key")
192
+ read_crt_and_key_bypassing_ssl_doctor
192
193
  end
193
194
 
194
195
  def read_crt_through_ssl_doctor(action_text = nil)
@@ -173,7 +173,7 @@ private
173
173
  help_for_namespace(name)
174
174
  puts
175
175
  elsif command.nil?
176
- error "#{name} is not a heroku command. See `pogo help`."
176
+ error "#{name} is not a pogoapp command. See `pogo help`."
177
177
  end
178
178
  end
179
179
  end
@@ -1,3 +1,3 @@
1
1
  module Heroku
2
- VERSION = "2.39.2.3"
2
+ VERSION = "2.39.2.4"
3
3
  end
@@ -495,7 +495,7 @@ STDERR
495
495
  it "complains if no such addon exists" do
496
496
  stderr, stdout = execute('addons:docs unknown')
497
497
  stderr.should == <<-STDERR
498
- ! `unknown` is not a heroku add-on.
498
+ ! `unknown` is not a pogoapp add-on.
499
499
  ! See `pogo addons:list` for all available addons.
500
500
  STDERR
501
501
  stdout.should == ''
@@ -504,7 +504,7 @@ STDERR
504
504
  it "suggests alternatives if addon has typo" do
505
505
  stderr, stdout = execute('addons:docs redisgoto')
506
506
  stderr.should == <<-STDERR
507
- ! `redisgoto` is not a heroku add-on.
507
+ ! `redisgoto` is not a pogoapp add-on.
508
508
  ! Perhaps you meant `redistogo`.
509
509
  ! See `pogo addons:list` for all available addons.
510
510
  STDERR
@@ -577,7 +577,7 @@ STDERR
577
577
  it "complains if no such addon exists" do
578
578
  stderr, stdout = execute('addons:open unknown')
579
579
  stderr.should == <<-STDERR
580
- ! `unknown` is not a heroku add-on.
580
+ ! `unknown` is not a pogoapp add-on.
581
581
  ! See `pogo addons:list` for all available addons.
582
582
  STDERR
583
583
  stdout.should == ''
@@ -586,7 +586,7 @@ STDERR
586
586
  it "suggests alternatives if addon has typo" do
587
587
  stderr, stdout = execute('addons:open redisgoto')
588
588
  stderr.should == <<-STDERR
589
- ! `redisgoto` is not a heroku add-on.
589
+ ! `redisgoto` is not a pogoapp add-on.
590
590
  ! Perhaps you meant `redistogo`.
591
591
  ! See `pogo addons:list` for all available addons.
592
592
  STDERR
@@ -50,7 +50,7 @@ describe Heroku::Command::Help do
50
50
  it "should show if the command does not exist" do
51
51
  stderr, stdout = execute("help sudo:sandwich")
52
52
  stderr.should == <<-STDERR
53
- ! sudo:sandwich is not a heroku command. See `pogo help`.
53
+ ! sudo:sandwich is not a pogoapp command. See `pogo help`.
54
54
  STDERR
55
55
  stdout.should == ""
56
56
  end
@@ -183,7 +183,7 @@ STDOUT
183
183
  rescue SystemExit
184
184
  end
185
185
  captured_stderr.string.should == <<-STDERR
186
- ! `aps` is not a heroku command.
186
+ ! `aps` is not a pogoapp command.
187
187
  ! Perhaps you meant `apps` or `ps`.
188
188
  ! See `pogo help` for a list of available commands.
189
189
  STDERR
@@ -200,7 +200,7 @@ STDERR
200
200
  rescue SystemExit
201
201
  end
202
202
  captured_stderr.string.should == <<-STDERR
203
- ! `sandwich` is not a heroku command.
203
+ ! `sandwich` is not a pogoapp command.
204
204
  ! See `pogo help` for a list of available commands.
205
205
  STDERR
206
206
  captured_stdout.string.should == ""
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pogo
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.39.2.3
4
+ version: 2.39.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pogoapp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-03 00:00:00.000000000 Z
11
+ date: 2013-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pogoapp-api
@@ -205,7 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
205
205
  version: '0'
206
206
  requirements: []
207
207
  rubyforge_project:
208
- rubygems_version: 2.0.3
208
+ rubygems_version: 2.0.0
209
209
  signing_key:
210
210
  specification_version: 4
211
211
  summary: Client library and CLI to deploy apps on Pogoapp.