pogo 2.39.2.2 → 2.39.2.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.
Files changed (48) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +1 -1
  3. data/bin/pogo +1 -1
  4. data/lib/heroku/auth.rb +1 -1
  5. data/lib/heroku/client.rb +1 -0
  6. data/lib/heroku/command.rb +2 -2
  7. data/lib/heroku/command/account.rb +1 -1
  8. data/lib/heroku/command/addons.rb +6 -6
  9. data/lib/heroku/command/apps.rb +17 -17
  10. data/lib/heroku/command/auth.rb +4 -4
  11. data/lib/heroku/command/base.rb +1 -1
  12. data/lib/heroku/command/certs.rb +5 -5
  13. data/lib/heroku/command/config.rb +10 -10
  14. data/lib/heroku/command/domains.rb +6 -6
  15. data/lib/heroku/command/drains.rb +2 -2
  16. data/lib/heroku/command/git.rb +4 -4
  17. data/lib/heroku/command/help.rb +7 -7
  18. data/lib/heroku/command/keys.rb +7 -7
  19. data/lib/heroku/command/labs.rb +7 -7
  20. data/lib/heroku/command/logs.rb +5 -5
  21. data/lib/heroku/command/maintenance.rb +3 -3
  22. data/lib/heroku/command/pg.rb +4 -4
  23. data/lib/heroku/command/pgbackups.rb +6 -6
  24. data/lib/heroku/command/plugins.rb +6 -6
  25. data/lib/heroku/command/ps.rb +19 -19
  26. data/lib/heroku/command/regions.rb +1 -1
  27. data/lib/heroku/command/releases.rb +5 -5
  28. data/lib/heroku/command/run.rb +12 -12
  29. data/lib/heroku/command/sharing.rb +7 -7
  30. data/lib/heroku/command/ssl.rb +3 -3
  31. data/lib/heroku/command/stack.rb +3 -3
  32. data/lib/heroku/command/status.rb +5 -5
  33. data/lib/heroku/command/update.rb +2 -2
  34. data/lib/heroku/command/version.rb +1 -1
  35. data/lib/heroku/plugin.rb +1 -1
  36. data/lib/heroku/version.rb +1 -1
  37. data/spec/heroku/client/pgbackups_spec.rb +2 -2
  38. data/spec/heroku/command/addons_spec.rb +11 -11
  39. data/spec/heroku/command/certs_spec.rb +1 -1
  40. data/spec/heroku/command/help_spec.rb +6 -6
  41. data/spec/heroku/command/pg_spec.rb +1 -1
  42. data/spec/heroku/command/pgbackups_spec.rb +4 -4
  43. data/spec/heroku/command/ps_spec.rb +6 -6
  44. data/spec/heroku/command/run_spec.rb +3 -3
  45. data/spec/heroku/command/status_spec.rb +1 -1
  46. data/spec/heroku/command_spec.rb +4 -4
  47. data/spec/heroku/plugin_spec.rb +1 -1
  48. metadata +14 -28
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: da0e8f20f39a2b0ea3b8deea03e5b494242816d1
4
+ data.tar.gz: 7c6f9d25184e4e20e5fd05abeabf3cd931b3ebd4
5
+ SHA512:
6
+ metadata.gz: 5dc581cce302d94009625d9b6c3722ff6190efd82be7ebd31d5a26fe91243055bd7513931d2574f5a8ed831e4e48f3811a6967c91ae12b56ef70ff72a70abe76
7
+ data.tar.gz: 8505a23b9490ad351de6fa3efaad7443c9ecd9e8c26e031d8e5c01e6a54e5491e45d2e8c0726e9d4508030fe18a77d399c14b99a4f7afcf435243b1ab5274c7c
data/README.md CHANGED
@@ -36,7 +36,7 @@ Setup
36
36
  </tr>
37
37
  </table>
38
38
 
39
- Once installed, you'll have access to the `heroku` command from your command shell. Log in using the email address and password you used when creating your Heroku account:
39
+ Once installed, you'll have access to the `pogo` command from your command shell. Log in using the email address and password you used when creating your Heroku account:
40
40
 
41
41
  $ heroku login
42
42
  Enter your Heroku credentials.
data/bin/pogo CHANGED
@@ -16,7 +16,7 @@ bin_file = Pathname.new(__FILE__).realpath
16
16
  $:.unshift File.expand_path("../../lib", bin_file)
17
17
 
18
18
  require "heroku/updater"
19
- Heroku::Updater.disable("`heroku update` is only available from Heroku Toolbelt.\nDownload and install from https://toolbelt.heroku.com")
19
+ Heroku::Updater.disable("`pogo update` is only available from Heroku Toolbelt.\nDownload and install from https://toolbelt.heroku.com")
20
20
 
21
21
  # start up the CLI
22
22
  require "heroku/cli"
data/lib/heroku/auth.rb CHANGED
@@ -260,7 +260,7 @@ class Heroku::Auth
260
260
  public_keys.each_with_index do |key, index|
261
261
  display "#{index+1}) #{File.basename(key)}"
262
262
  end
263
- display "Which would you like to use with your Heroku account? ", false
263
+ display "Which would you like to use with your Pogoapp account? ", false
264
264
  choice = ask.to_i - 1
265
265
  chosen = public_keys[choice]
266
266
  if choice == -1 || chosen.nil?
data/lib/heroku/client.rb CHANGED
@@ -485,6 +485,7 @@ Check the output of "heroku ps" and "heroku logs" for more information.
485
485
  if url == 'Use old logs'
486
486
  puts get("/apps/#{escape app_name}/logs").to_s
487
487
  else
488
+ puts "getting new logs from #{url}"
488
489
  uri = URI.parse(url);
489
490
 
490
491
  if uri.scheme == 'https'
@@ -195,7 +195,7 @@ module Heroku
195
195
  error([
196
196
  "`#{cmd}` is not a heroku command.",
197
197
  suggestion(cmd, commands.keys + command_aliases.keys),
198
- "See `heroku help` for a list of available commands."
198
+ "See `pogo help` for a list of available commands."
199
199
  ].compact.join("\n"))
200
200
  end
201
201
  end
@@ -263,7 +263,7 @@ module Heroku
263
263
  end
264
264
 
265
265
  def self.extract_error(body, options={})
266
- default_error = block_given? ? yield : "Internal server error.\nRun `heroku status` to check for known platform issues."
266
+ default_error = block_given? ? yield : "Internal server error.\nRun `pogo status` to check for known platform issues."
267
267
  parse_error_xml(body) || parse_error_json(body) || parse_error_plain(body) || default_error
268
268
  end
269
269
 
@@ -10,7 +10,7 @@ class Heroku::Command::Account < Heroku::Command::Base
10
10
  #
11
11
  #Example:
12
12
  #
13
- # $ heroku account:confirm_billing
13
+ # $ pogo account:confirm_billing
14
14
  # This action will cause your account to be billed at the end of the month
15
15
  # For more information, see http://docs.heroku.com/billing
16
16
  # Are you sure you want to do this? (y/n)
@@ -46,7 +46,7 @@ module Heroku::Command
46
46
  #
47
47
  #Example:
48
48
  #
49
- # $ heroku addons:list --region eu
49
+ # $ pogo addons:list --region eu
50
50
  # === available
51
51
  # adept-scale:battleship, corvette...
52
52
  # adminium:enterprise, petproject...
@@ -117,7 +117,7 @@ module Heroku::Command
117
117
  #
118
118
  def docs
119
119
  unless addon = shift_argument
120
- error("Usage: heroku addons:docs ADDON\nMust specify ADDON to open docs for.")
120
+ error("Usage: pogo addons:docs ADDON\nMust specify ADDON to open docs for.")
121
121
  end
122
122
  validate_arguments!
123
123
 
@@ -136,7 +136,7 @@ module Heroku::Command
136
136
  error([
137
137
  "`#{addon}` is not a heroku add-on.",
138
138
  suggestion(addon, addon_names + addon_types),
139
- "See `heroku addons:list` for all available addons."
139
+ "See `pogo addons:list` for all available addons."
140
140
  ].compact.join("\n"))
141
141
  when 1
142
142
  addon_type = type_matches.first
@@ -152,7 +152,7 @@ module Heroku::Command
152
152
  #
153
153
  def open
154
154
  unless addon = shift_argument
155
- error("Usage: heroku addons:open ADDON\nMust specify ADDON to open.")
155
+ error("Usage: pogo addons:open ADDON\nMust specify ADDON to open.")
156
156
  end
157
157
  validate_arguments!
158
158
 
@@ -168,7 +168,7 @@ module Heroku::Command
168
168
  error([
169
169
  "`#{addon}` is not a heroku add-on.",
170
170
  suggestion(addon, addon_names + addon_names.map {|name| name.split(':').first}.uniq),
171
- "See `heroku addons:list` for all available addons."
171
+ "See `pogo addons:list` for all available addons."
172
172
  ].compact.join("\n"))
173
173
  end
174
174
  when 1 then
@@ -274,7 +274,7 @@ module Heroku::Command
274
274
  display(messages[:attachment]) unless messages[:attachment].to_s.strip == ""
275
275
  display(messages[:message]) unless messages[:message].to_s.strip == ""
276
276
 
277
- display("Use `heroku addons:docs #{addon}` to view documentation.")
277
+ display("Use `pogo addons:docs #{addon}` to view documentation.")
278
278
  end
279
279
 
280
280
  #this will clean up when we officially deprecate
@@ -10,7 +10,7 @@ class Heroku::Command::Apps < Heroku::Command::Base
10
10
  #
11
11
  #Example:
12
12
  #
13
- # $ heroku apps
13
+ # $ pogo apps
14
14
  # === My Apps
15
15
  # example
16
16
  # example2
@@ -70,13 +70,13 @@ class Heroku::Command::Apps < Heroku::Command::Base
70
70
  #
71
71
  #Examples:
72
72
  #
73
- # $ heroku apps:info
73
+ # $ pogo apps:info
74
74
  # === example
75
75
  # Git URL: git@heroku.com:example.git
76
76
  # Repo Size: 5M
77
77
  # ...
78
78
  #
79
- # $ heroku apps:info --shell
79
+ # $ pogo apps:info --shell
80
80
  # git_url=git@heroku.com:example.git
81
81
  # repo_size=5000000
82
82
  # ...
@@ -188,24 +188,24 @@ class Heroku::Command::Apps < Heroku::Command::Base
188
188
  #
189
189
  #Examples:
190
190
  #
191
- # $ heroku apps:create
191
+ # $ pogo apps:create
192
192
  # Creating floating-dragon-42... done, stack is cedar
193
193
  # http://floating-dragon-42.heroku.com/ | git@heroku.com:floating-dragon-42.git
194
194
  #
195
- # $ heroku apps:create -s bamboo
195
+ # $ pogo apps:create -s bamboo
196
196
  # Creating floating-dragon-42... done, stack is bamboo-mri-1.9.2
197
197
  # http://floating-dragon-42.herokuapp.com/ | git@heroku.com:floating-dragon-42.git
198
198
  #
199
199
  # # specify a name
200
- # $ heroku apps:create example
200
+ # $ pogo apps:create example
201
201
  # Creating example... done, stack is cedar
202
202
  # http://example.heroku.com/ | git@heroku.com:example.git
203
203
  #
204
204
  # # create a staging app
205
- # $ heroku apps:create example-staging --remote staging
205
+ # $ pogo apps:create example-staging --remote staging
206
206
  #
207
207
  # # create an app in the eu region
208
- # $ heroku apps:create --region eu
208
+ # $ pogo apps:create --region eu
209
209
  #
210
210
  def create
211
211
  name = shift_argument || options[:app] || ENV['HEROKU_APP']
@@ -248,11 +248,11 @@ class Heroku::Command::Apps < Heroku::Command::Base
248
248
 
249
249
  hputs([ info["web_url"], info["git_url"] ].join(" | "))
250
250
  rescue Timeout::Error
251
- hputs("Timed Out! Run `heroku status` to check for known platform issues.")
251
+ hputs("Timed Out! Run `pogo status` to check for known platform issues.")
252
252
  end
253
253
 
254
254
  unless options[:no_remote].is_a? FalseClass
255
- create_git_remote(options[:remote] || "heroku", info["git_url"])
255
+ create_git_remote(options[:remote] || "pogoapp", info["git_url"])
256
256
  end
257
257
  end
258
258
 
@@ -264,14 +264,14 @@ class Heroku::Command::Apps < Heroku::Command::Base
264
264
  #
265
265
  #Example:
266
266
  #
267
- # $ heroku apps:rename example-newname
267
+ # $ pogo apps:rename example-newname
268
268
  # http://example-newname.herokuapp.com/ | git@heroku.com:example-newname.git
269
269
  # Git remote heroku updated
270
270
  #
271
271
  def rename
272
272
  newname = shift_argument
273
273
  if newname.nil? || newname.empty?
274
- error("Usage: heroku apps:rename NEWNAME\nMust specify NEWNAME to rename.")
274
+ error("Usage: pogo apps:rename NEWNAME\nMust specify NEWNAME to rename.")
275
275
  end
276
276
  validate_arguments!
277
277
 
@@ -302,7 +302,7 @@ class Heroku::Command::Apps < Heroku::Command::Base
302
302
  #
303
303
  #Example:
304
304
  #
305
- # $ heroku apps:open
305
+ # $ pogo apps:open
306
306
  # Opening example... done
307
307
  #
308
308
  def open
@@ -320,7 +320,7 @@ class Heroku::Command::Apps < Heroku::Command::Base
320
320
  #
321
321
  #Example:
322
322
  #
323
- # $ heroku apps:destroy -a example --confirm example
323
+ # $ pogo apps:destroy -a example --confirm example
324
324
  # Destroying example (including all add-ons)... done
325
325
  #
326
326
  def destroy
@@ -328,7 +328,7 @@ class Heroku::Command::Apps < Heroku::Command::Base
328
328
  validate_arguments!
329
329
 
330
330
  unless @app
331
- error("Usage: heroku apps:destroy --app APP\nMust specify APP to destroy.")
331
+ error("Usage: pogo apps:destroy --app APP\nMust specify APP to destroy.")
332
332
  end
333
333
 
334
334
  api.get_app(@app) # fail fast if no access or doesn't exist
@@ -356,7 +356,7 @@ class Heroku::Command::Apps < Heroku::Command::Base
356
356
  #
357
357
  def upgrade
358
358
  tier = shift_argument
359
- error("Usage: heroku apps:upgrade TIER\nMust specify TIER to upgrade.") if tier.nil? || tier.empty?
359
+ error("Usage: pogo apps:upgrade TIER\nMust specify TIER to upgrade.") if tier.nil? || tier.empty?
360
360
  validate_arguments!
361
361
 
362
362
  action("Upgrading #{app} to #{tier}") do
@@ -372,7 +372,7 @@ class Heroku::Command::Apps < Heroku::Command::Base
372
372
  #
373
373
  def downgrade
374
374
  tier = shift_argument
375
- error("Usage: heroku apps:downgrade TIER\nMust specify TIER to downgrade.") if tier.nil? || tier.empty?
375
+ error("Usage: pogo apps:downgrade TIER\nMust specify TIER to downgrade.") if tier.nil? || tier.empty?
376
376
  validate_arguments!
377
377
 
378
378
  action("Upgrading #{app} to #{tier}") do
@@ -19,7 +19,7 @@ class Heroku::Command::Auth < Heroku::Command::Base
19
19
  #
20
20
  #Example:
21
21
  #
22
- # $ heroku auth:login
22
+ # $ pogo auth:login
23
23
  # Enter your Heroku credentials:
24
24
  # Email: email@example.com
25
25
  # Password (typing will be hidden):
@@ -40,7 +40,7 @@ class Heroku::Command::Auth < Heroku::Command::Base
40
40
  #
41
41
  #Example:
42
42
  #
43
- # $ heroku auth:logout
43
+ # $ pogo auth:logout
44
44
  # Local credentials cleared.
45
45
  #
46
46
  def logout
@@ -58,7 +58,7 @@ class Heroku::Command::Auth < Heroku::Command::Base
58
58
  #
59
59
  #Example:
60
60
  #
61
- # $ heroku auth:token
61
+ # $ pogo auth:token
62
62
  # ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789ABCD
63
63
  #
64
64
  def token
@@ -73,7 +73,7 @@ class Heroku::Command::Auth < Heroku::Command::Base
73
73
  #
74
74
  #Example:
75
75
  #
76
- # $ heroku auth:whoami
76
+ # $ pogo auth:whoami
77
77
  # email@example.com
78
78
  #
79
79
  def whoami
@@ -205,7 +205,7 @@ protected
205
205
  return unless File.exists?(".git")
206
206
  git("remote -v").split("\n").each do |remote|
207
207
  name, url, method = remote.split(/\s/)
208
- if url =~ /^git@#{Heroku::Auth.git_host}(?:[\.\w]*):([\w\d-\/]+)\.git$/
208
+ if url =~ /^git@#{Heroku::Auth.git_host}(?:[\.\w]*):([\w\d\/-]+)\.git$/
209
209
  remotes[name] = $1
210
210
  end
211
211
  end
@@ -17,7 +17,7 @@ class Heroku::Command::Certs < Heroku::Command::Base
17
17
 
18
18
  if endpoints.empty?
19
19
  display "#{app} has no SSL Endpoints."
20
- display "Use `heroku certs:add CRT KEY` to add one."
20
+ display "Use `pogo certs:add CRT KEY` to add one."
21
21
  else
22
22
  endpoints.map! do |endpoint|
23
23
  {
@@ -45,7 +45,7 @@ class Heroku::Command::Certs < Heroku::Command::Base
45
45
  def chain
46
46
  puts read_crt_through_ssl_doctor
47
47
  rescue UsageError
48
- fail("Usage: heroku certs:chain CRT [CRT ...]\nMust specify at least one certificate file.")
48
+ fail("Usage: pogo certs:chain CRT [CRT ...]\nMust specify at least one certificate file.")
49
49
  end
50
50
 
51
51
  # certs:key CRT KEY [KEY ...]
@@ -59,7 +59,7 @@ class Heroku::Command::Certs < Heroku::Command::Base
59
59
  crt, key = read_crt_and_key_through_ssl_doctor("Testing for signing key")
60
60
  puts key
61
61
  rescue UsageError
62
- fail("Usage: heroku certs:key CRT KEY [KEY ...]\nMust specify one certificate file and at least one key file.")
62
+ fail("Usage: pogo certs:key CRT KEY [KEY ...]\nMust specify one certificate file and at least one key file.")
63
63
  end
64
64
 
65
65
  # certs:add CRT KEY
@@ -76,7 +76,7 @@ class Heroku::Command::Certs < Heroku::Command::Base
76
76
  display "Certificate details:"
77
77
  display_certificate_info(endpoint)
78
78
  rescue UsageError
79
- fail("Usage: heroku certs:add CRT KEY\nMust specify CRT and KEY to add cert.")
79
+ fail("Usage: pogo certs:add CRT KEY\nMust specify CRT and KEY to add cert.")
80
80
  end
81
81
 
82
82
  # certs:update CRT KEY
@@ -93,7 +93,7 @@ class Heroku::Command::Certs < Heroku::Command::Base
93
93
  display "Updated certificate details:"
94
94
  display_certificate_info(endpoint)
95
95
  rescue UsageError
96
- fail("Usage: heroku certs:update CRT KEY\nMust specify CRT and KEY to update cert.")
96
+ fail("Usage: pogo certs:update CRT KEY\nMust specify CRT and KEY to update cert.")
97
97
  end
98
98
 
99
99
  # certs:info
@@ -12,11 +12,11 @@ class Heroku::Command::Config < Heroku::Command::Base
12
12
  #
13
13
  #Examples:
14
14
  #
15
- # $ heroku config
15
+ # $ pogo config
16
16
  # A: one
17
17
  # B: two
18
18
  #
19
- # $ heroku config --shell
19
+ # $ pogo config --shell
20
20
  # A=one
21
21
  # B=two
22
22
  #
@@ -45,18 +45,18 @@ class Heroku::Command::Config < Heroku::Command::Base
45
45
  #
46
46
  #Example:
47
47
  #
48
- # $ heroku config:set A=one
48
+ # $ pogo config:set A=one
49
49
  # Setting config vars and restarting example... done, v123
50
50
  # A: one
51
51
  #
52
- # $ heroku config:set A=one B=two
52
+ # $ pogo config:set A=one B=two
53
53
  # Setting config vars and restarting example... done, v123
54
54
  # A: one
55
55
  # B: two
56
56
  #
57
57
  def set
58
58
  unless args.size > 0 and args.all? { |a| a.include?('=') }
59
- error("Usage: heroku config:set KEY1=VALUE1 [KEY2=VALUE2 ...]\nMust specify KEY and VALUE to set.")
59
+ error("Usage: pogo config:set KEY1=VALUE1 [KEY2=VALUE2 ...]\nMust specify KEY and VALUE to set.")
60
60
  end
61
61
 
62
62
  vars = args.inject({}) do |vars, arg|
@@ -88,12 +88,12 @@ class Heroku::Command::Config < Heroku::Command::Base
88
88
  #
89
89
  #Examples:
90
90
  #
91
- # $ heroku config:get A
91
+ # $ pogo config:get A
92
92
  # one
93
93
  #
94
94
  def get
95
95
  unless key = shift_argument
96
- error("Usage: heroku config:get KEY\nMust specify KEY.")
96
+ error("Usage: pogo config:get KEY\nMust specify KEY.")
97
97
  end
98
98
  validate_arguments!
99
99
 
@@ -106,16 +106,16 @@ class Heroku::Command::Config < Heroku::Command::Base
106
106
  #
107
107
  # unset one or more config vars
108
108
  #
109
- # $ heroku config:unset A
109
+ # $ pogo config:unset A
110
110
  # Unsetting A and restarting example... done, v123
111
111
  #
112
- # $ heroku config:unset A B
112
+ # $ pogo config:unset A B
113
113
  # Unsetting A and restarting example... done, v123
114
114
  # Unsetting B and restarting example... done, v124
115
115
  #
116
116
  def unset
117
117
  if args.empty?
118
- error("Usage: heroku config:unset KEY1 [KEY2 ...]\nMust specify KEY to unset.")
118
+ error("Usage: pogo config:unset KEY1 [KEY2 ...]\nMust specify KEY to unset.")
119
119
  end
120
120
 
121
121
  args.each do |key|
@@ -12,7 +12,7 @@ module Heroku::Command
12
12
  #
13
13
  #Examples:
14
14
  #
15
- # $ heroku domains
15
+ # $ pogo domains
16
16
  # === Domain names for example
17
17
  # example.com
18
18
  #
@@ -33,12 +33,12 @@ module Heroku::Command
33
33
  #
34
34
  #Examples:
35
35
  #
36
- # $ heroku domains:add example.com
36
+ # $ pogo domains:add example.com
37
37
  # Adding example.com to example... done
38
38
  #
39
39
  def add
40
40
  unless domain = shift_argument
41
- error("Usage: heroku domains:add DOMAIN\nMust specify DOMAIN to add.")
41
+ error("Usage: pogo domains:add DOMAIN\nMust specify DOMAIN to add.")
42
42
  end
43
43
  validate_arguments!
44
44
  action("Adding #{domain} to #{app}") do
@@ -52,12 +52,12 @@ module Heroku::Command
52
52
  #
53
53
  #Examples:
54
54
  #
55
- # $ heroku domains:remove example.com
55
+ # $ pogo domains:remove example.com
56
56
  # Removing example.com from example... done
57
57
  #
58
58
  def remove
59
59
  unless domain = shift_argument
60
- error("Usage: heroku domains:remove DOMAIN\nMust specify DOMAIN to remove.")
60
+ error("Usage: pogo domains:remove DOMAIN\nMust specify DOMAIN to remove.")
61
61
  end
62
62
  validate_arguments!
63
63
  action("Removing #{domain} from #{app}") do
@@ -71,7 +71,7 @@ module Heroku::Command
71
71
  #
72
72
  #Examples:
73
73
  #
74
- # $ heroku domains:clear
74
+ # $ pogo domains:clear
75
75
  # Removing all domain names for example... done
76
76
  #
77
77
  def clear