pogo 2.39.2.2 → 2.39.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +1 -1
- data/bin/pogo +1 -1
- data/lib/heroku/auth.rb +1 -1
- data/lib/heroku/client.rb +1 -0
- data/lib/heroku/command.rb +2 -2
- data/lib/heroku/command/account.rb +1 -1
- data/lib/heroku/command/addons.rb +6 -6
- data/lib/heroku/command/apps.rb +17 -17
- data/lib/heroku/command/auth.rb +4 -4
- data/lib/heroku/command/base.rb +1 -1
- data/lib/heroku/command/certs.rb +5 -5
- data/lib/heroku/command/config.rb +10 -10
- data/lib/heroku/command/domains.rb +6 -6
- data/lib/heroku/command/drains.rb +2 -2
- data/lib/heroku/command/git.rb +4 -4
- data/lib/heroku/command/help.rb +7 -7
- data/lib/heroku/command/keys.rb +7 -7
- data/lib/heroku/command/labs.rb +7 -7
- data/lib/heroku/command/logs.rb +5 -5
- data/lib/heroku/command/maintenance.rb +3 -3
- data/lib/heroku/command/pg.rb +4 -4
- data/lib/heroku/command/pgbackups.rb +6 -6
- data/lib/heroku/command/plugins.rb +6 -6
- data/lib/heroku/command/ps.rb +19 -19
- data/lib/heroku/command/regions.rb +1 -1
- data/lib/heroku/command/releases.rb +5 -5
- data/lib/heroku/command/run.rb +12 -12
- data/lib/heroku/command/sharing.rb +7 -7
- data/lib/heroku/command/ssl.rb +3 -3
- data/lib/heroku/command/stack.rb +3 -3
- data/lib/heroku/command/status.rb +5 -5
- data/lib/heroku/command/update.rb +2 -2
- data/lib/heroku/command/version.rb +1 -1
- data/lib/heroku/plugin.rb +1 -1
- data/lib/heroku/version.rb +1 -1
- data/spec/heroku/client/pgbackups_spec.rb +2 -2
- data/spec/heroku/command/addons_spec.rb +11 -11
- data/spec/heroku/command/certs_spec.rb +1 -1
- data/spec/heroku/command/help_spec.rb +6 -6
- data/spec/heroku/command/pg_spec.rb +1 -1
- data/spec/heroku/command/pgbackups_spec.rb +4 -4
- data/spec/heroku/command/ps_spec.rb +6 -6
- data/spec/heroku/command/run_spec.rb +3 -3
- data/spec/heroku/command/status_spec.rb +1 -1
- data/spec/heroku/command_spec.rb +4 -4
- data/spec/heroku/plugin_spec.rb +1 -1
- metadata +14 -28
@@ -10,7 +10,7 @@ class Heroku::Command::Releases < Heroku::Command::Base
|
|
10
10
|
#
|
11
11
|
#Example:
|
12
12
|
#
|
13
|
-
# $
|
13
|
+
# $ pogo releases
|
14
14
|
# === example Releases
|
15
15
|
# v1 Config add FOO_BAR by email@example.com 0s ago
|
16
16
|
# v2 Config add BAR_BAZ by email@example.com 0s ago
|
@@ -49,7 +49,7 @@ class Heroku::Command::Releases < Heroku::Command::Base
|
|
49
49
|
#
|
50
50
|
#Example:
|
51
51
|
#
|
52
|
-
# $
|
52
|
+
# $ pogo releases:info v10
|
53
53
|
# === Release v10
|
54
54
|
# Addons: deployhooks:http
|
55
55
|
# By: email@example.com
|
@@ -61,7 +61,7 @@ class Heroku::Command::Releases < Heroku::Command::Base
|
|
61
61
|
#
|
62
62
|
def info
|
63
63
|
unless release = shift_argument
|
64
|
-
error("Usage:
|
64
|
+
error("Usage: pogo releases:info RELEASE")
|
65
65
|
end
|
66
66
|
validate_arguments!
|
67
67
|
|
@@ -104,10 +104,10 @@ class Heroku::Command::Releases < Heroku::Command::Base
|
|
104
104
|
#
|
105
105
|
#Example:
|
106
106
|
#
|
107
|
-
# $
|
107
|
+
# $ pogo releases:rollback
|
108
108
|
# Rolling back example... done, v122
|
109
109
|
#
|
110
|
-
# $
|
110
|
+
# $ pogo releases:rollback v42
|
111
111
|
# Rolling back example to v42... done
|
112
112
|
#
|
113
113
|
def rollback
|
data/lib/heroku/command/run.rb
CHANGED
@@ -14,13 +14,13 @@ class Heroku::Command::Run < Heroku::Command::Base
|
|
14
14
|
#
|
15
15
|
#Example:
|
16
16
|
#
|
17
|
-
# $
|
17
|
+
# $ pogo run bash
|
18
18
|
# Running `bash` attached to terminal... up, run.1
|
19
19
|
# ~ $
|
20
20
|
#
|
21
21
|
def index
|
22
22
|
command = args.join(" ")
|
23
|
-
error("Usage:
|
23
|
+
error("Usage: pogo run COMMAND") if command.empty?
|
24
24
|
run_attached(command)
|
25
25
|
end
|
26
26
|
|
@@ -33,13 +33,13 @@ class Heroku::Command::Run < Heroku::Command::Base
|
|
33
33
|
#
|
34
34
|
#Example:
|
35
35
|
#
|
36
|
-
# $
|
36
|
+
# $ pogo run:detached ls
|
37
37
|
# Running `ls` detached... up, run.1
|
38
|
-
# Use `
|
38
|
+
# Use `pogo logs -p run.1` to view the output.
|
39
39
|
#
|
40
40
|
def detached
|
41
41
|
command = args.join(" ")
|
42
|
-
error("Usage:
|
42
|
+
error("Usage: pogo run COMMAND") if command.empty?
|
43
43
|
opts = { :attach => false, :command => command }
|
44
44
|
opts[:size] = get_size if options[:size]
|
45
45
|
|
@@ -56,25 +56,25 @@ class Heroku::Command::Run < Heroku::Command::Base
|
|
56
56
|
log_displayer = ::Heroku::Helpers::LogDisplayer.new(heroku, app, opts)
|
57
57
|
log_displayer.display_logs
|
58
58
|
else
|
59
|
-
display("Use `
|
59
|
+
display("Use `pogo logs -p #{process_data['process']}` to view the output.")
|
60
60
|
end
|
61
61
|
end
|
62
62
|
|
63
63
|
# run:rake COMMAND
|
64
64
|
#
|
65
|
-
# WARNING: `
|
65
|
+
# WARNING: `pogo run:rake` has been deprecated. Please use `pogo run rake` instead."
|
66
66
|
#
|
67
67
|
# remotely execute a rake command
|
68
68
|
#
|
69
69
|
#Example:
|
70
70
|
#
|
71
|
-
# $
|
71
|
+
# $ pogo run:rake -T
|
72
72
|
# Running `rake -T` attached to terminal... up, run.1
|
73
73
|
# (in /app)
|
74
74
|
# rake test # run tests
|
75
75
|
#
|
76
76
|
def rake
|
77
|
-
deprecate("`
|
77
|
+
deprecate("`pogo #{current_command}` has been deprecated. Please use `pogo run rake` instead.")
|
78
78
|
command = "rake #{args.join(' ')}"
|
79
79
|
run_attached(command)
|
80
80
|
end
|
@@ -87,16 +87,16 @@ class Heroku::Command::Run < Heroku::Command::Base
|
|
87
87
|
#
|
88
88
|
# if COMMAND is specified, run the command and exit
|
89
89
|
#
|
90
|
-
# NOTE: For Cedar apps, use `
|
90
|
+
# NOTE: For Cedar apps, use `pogo run console`
|
91
91
|
#
|
92
92
|
#Examples:
|
93
93
|
#
|
94
|
-
# $
|
94
|
+
# $ pogo console
|
95
95
|
# Ruby console for example.heroku.com
|
96
96
|
# >>
|
97
97
|
#
|
98
98
|
def console
|
99
|
-
puts "`
|
99
|
+
puts "`pogo #{current_command}` has been removed. Please use: `pogo run` instead."
|
100
100
|
puts "For more information, please see:"
|
101
101
|
puts " * https://devcenter.heroku.com/articles/one-off-dynos"
|
102
102
|
puts " * https://devcenter.heroku.com/articles/rails3#console"
|
@@ -12,7 +12,7 @@ module Heroku::Command
|
|
12
12
|
#
|
13
13
|
#Example:
|
14
14
|
#
|
15
|
-
# $
|
15
|
+
# $ pogo sharing
|
16
16
|
# === example Collaborators
|
17
17
|
# collaborator@example.com
|
18
18
|
# email@example.com
|
@@ -32,12 +32,12 @@ module Heroku::Command
|
|
32
32
|
#
|
33
33
|
#Example:
|
34
34
|
#
|
35
|
-
# $
|
35
|
+
# $ pogo sharing:add collaborator@example.com
|
36
36
|
# Adding collaborator@example.com to example collaborators... done
|
37
37
|
#
|
38
38
|
def add
|
39
39
|
unless email = shift_argument
|
40
|
-
error("Usage:
|
40
|
+
error("Usage: pogo sharing:add EMAIL\nMust specify EMAIL to add sharing.")
|
41
41
|
end
|
42
42
|
validate_arguments!
|
43
43
|
|
@@ -52,12 +52,12 @@ module Heroku::Command
|
|
52
52
|
#
|
53
53
|
#Example:
|
54
54
|
#
|
55
|
-
# $
|
55
|
+
# $ pogo sharing:remove collaborator@example.com
|
56
56
|
# Removing collaborator@example.com to example collaborators... done
|
57
57
|
#
|
58
58
|
def remove
|
59
59
|
unless email = shift_argument
|
60
|
-
error("Usage:
|
60
|
+
error("Usage: pogo sharing:remove EMAIL\nMust specify EMAIL to remove sharing.")
|
61
61
|
end
|
62
62
|
validate_arguments!
|
63
63
|
|
@@ -72,12 +72,12 @@ module Heroku::Command
|
|
72
72
|
#
|
73
73
|
#Example:
|
74
74
|
#
|
75
|
-
# $
|
75
|
+
# $ pogo sharing:transfer collaborator@example.com
|
76
76
|
# Transferring example to collaborator@example.com... done
|
77
77
|
#
|
78
78
|
def transfer
|
79
79
|
unless email = shift_argument
|
80
|
-
error("Usage:
|
80
|
+
error("Usage: pogo sharing:transfer EMAIL\nMust specify EMAIL to transfer an app.")
|
81
81
|
end
|
82
82
|
validate_arguments!
|
83
83
|
|
data/lib/heroku/command/ssl.rb
CHANGED
@@ -2,7 +2,7 @@ require "heroku/command/base"
|
|
2
2
|
|
3
3
|
module Heroku::Command
|
4
4
|
|
5
|
-
# DEPRECATED: see `
|
5
|
+
# DEPRECATED: see `pogo certs` instead
|
6
6
|
#
|
7
7
|
# manage ssl certificates for an app
|
8
8
|
#
|
@@ -24,10 +24,10 @@ module Heroku::Command
|
|
24
24
|
|
25
25
|
# ssl:add PEM KEY
|
26
26
|
#
|
27
|
-
# DEPRECATED: see `
|
27
|
+
# DEPRECATED: see `pogo certs:add` instead
|
28
28
|
#
|
29
29
|
def add
|
30
|
-
$stderr.puts " ! `
|
30
|
+
$stderr.puts " ! `pogo ssl:add` has been deprecated. Please use the SSL Endpoint add-on and the `pogo certs` commands instead."
|
31
31
|
$stderr.puts " ! SSL Endpoint documentation is available at: https://devcenter.heroku.com/articles/ssl-endpoint"
|
32
32
|
end
|
33
33
|
|
data/lib/heroku/command/stack.rb
CHANGED
@@ -11,7 +11,7 @@ module Heroku::Command
|
|
11
11
|
#
|
12
12
|
#Example:
|
13
13
|
#
|
14
|
-
# $
|
14
|
+
# $ pogo stack
|
15
15
|
# === example Available Stacks
|
16
16
|
# bamboo-mri-1.9.2
|
17
17
|
# bamboo-ree-1.8.7
|
@@ -39,7 +39,7 @@ module Heroku::Command
|
|
39
39
|
#
|
40
40
|
#Example:
|
41
41
|
#
|
42
|
-
# $
|
42
|
+
# $ pogo stack:migrate cedar
|
43
43
|
# -----> Preparing to migrate evening-warrior-2345
|
44
44
|
# bamboo-mri-1.9.2 -> bamboo-ree-1.8.7
|
45
45
|
#
|
@@ -53,7 +53,7 @@ module Heroku::Command
|
|
53
53
|
#
|
54
54
|
def migrate
|
55
55
|
unless stack = shift_argument
|
56
|
-
error("Usage:
|
56
|
+
error("Usage: pogo stack:migrate STACK.\nMust specify target stack.")
|
57
57
|
end
|
58
58
|
|
59
59
|
display(api.put_stack(app, stack).body)
|
@@ -1,17 +1,17 @@
|
|
1
1
|
require "heroku/command/base"
|
2
2
|
|
3
|
-
# check status of
|
3
|
+
# check status of pogoapp platform
|
4
4
|
#
|
5
5
|
class Heroku::Command::Status < Heroku::Command::Base
|
6
6
|
|
7
7
|
# status
|
8
8
|
#
|
9
|
-
# display current status of
|
9
|
+
# display current status of pogoapp platform
|
10
10
|
#
|
11
11
|
#Example:
|
12
12
|
#
|
13
|
-
# $
|
14
|
-
# ===
|
13
|
+
# $ pogo status
|
14
|
+
# === Pogoapp Status
|
15
15
|
# Development: No known issues at this time.
|
16
16
|
# Production: No known issues at this time.
|
17
17
|
#
|
@@ -22,7 +22,7 @@ class Heroku::Command::Status < Heroku::Command::Base
|
|
22
22
|
require('excon')
|
23
23
|
status = json_decode(Excon.get("https://#{heroku_status_host}/api/v3/current-status.json", :nonblock => false).body)
|
24
24
|
|
25
|
-
styled_header("
|
25
|
+
styled_header("Pogoapp Status")
|
26
26
|
|
27
27
|
status['status'].each do |key, value|
|
28
28
|
if value == 'green'
|
@@ -11,7 +11,7 @@ class Heroku::Command::Update < Heroku::Command::Base
|
|
11
11
|
#
|
12
12
|
# Example:
|
13
13
|
#
|
14
|
-
# $
|
14
|
+
# $ pogo update
|
15
15
|
# Updating from v1.2.3... done, updated to v2.3.4
|
16
16
|
#
|
17
17
|
def index
|
@@ -23,7 +23,7 @@ class Heroku::Command::Update < Heroku::Command::Base
|
|
23
23
|
#
|
24
24
|
# update to the latest beta client
|
25
25
|
#
|
26
|
-
# $
|
26
|
+
# $ pogo update
|
27
27
|
# Updating from v1.2.3... done, updated to v2.3.4.pre
|
28
28
|
#
|
29
29
|
def beta
|
data/lib/heroku/plugin.rb
CHANGED
data/lib/heroku/version.rb
CHANGED
@@ -13,12 +13,12 @@ describe Heroku::Client::Pgbackups do
|
|
13
13
|
describe "api" do
|
14
14
|
let(:version) { Heroku::Client.version }
|
15
15
|
|
16
|
-
it 'still has a
|
16
|
+
it 'still has a pogo gem version' do
|
17
17
|
version.should be
|
18
18
|
version.split(/\./).first.to_i.should >= 2
|
19
19
|
end
|
20
20
|
|
21
|
-
it 'includes the
|
21
|
+
it 'includes the pogo gem version' do
|
22
22
|
stub_request(:get, transfer_path)
|
23
23
|
client.get_transfers
|
24
24
|
a_request(:get, transfer_path).with(
|
@@ -121,7 +121,7 @@ STDOUT
|
|
121
121
|
stdout.should == <<-STDOUT
|
122
122
|
Warning: non-unix style params have been deprecated, use --extra=XXX instead
|
123
123
|
Adding my_addon on example... done, v99 (free)
|
124
|
-
Use `
|
124
|
+
Use `pogo addons:docs my_addon` to view documentation.
|
125
125
|
STDOUT
|
126
126
|
Excon.stubs.shift
|
127
127
|
end
|
@@ -268,7 +268,7 @@ STDOUT
|
|
268
268
|
stdout.should == <<-OUTPUT
|
269
269
|
Adding my_addon on example... done, v99 (free)
|
270
270
|
foo
|
271
|
-
Use `
|
271
|
+
Use `pogo addons:docs my_addon` to view documentation.
|
272
272
|
OUTPUT
|
273
273
|
end
|
274
274
|
|
@@ -280,7 +280,7 @@ OUTPUT
|
|
280
280
|
Adding my_addon on example... done, v99 ($200/mo)
|
281
281
|
foo
|
282
282
|
bar
|
283
|
-
Use `
|
283
|
+
Use `pogo addons:docs my_addon` to view documentation.
|
284
284
|
OUTPUT
|
285
285
|
end
|
286
286
|
|
@@ -332,7 +332,7 @@ OUTPUT
|
|
332
332
|
stderr.should == ""
|
333
333
|
stdout.should == <<-OUTPUT
|
334
334
|
Upgrading to my_addon on example... done, v99 (free)
|
335
|
-
Use `
|
335
|
+
Use `pogo addons:docs my_addon` to view documentation.
|
336
336
|
OUTPUT
|
337
337
|
end
|
338
338
|
|
@@ -343,7 +343,7 @@ OUTPUT
|
|
343
343
|
stdout.should == <<-OUTPUT
|
344
344
|
Upgrading to my_addon on example... done, v99 (free)
|
345
345
|
Don't Panic
|
346
|
-
Use `
|
346
|
+
Use `pogo addons:docs my_addon` to view documentation.
|
347
347
|
OUTPUT
|
348
348
|
end
|
349
349
|
end
|
@@ -390,7 +390,7 @@ OUTPUT
|
|
390
390
|
stderr.should == ""
|
391
391
|
stdout.should == <<-OUTPUT
|
392
392
|
Downgrading to my_addon on example... done, v99 (free)
|
393
|
-
Use `
|
393
|
+
Use `pogo addons:docs my_addon` to view documentation.
|
394
394
|
OUTPUT
|
395
395
|
end
|
396
396
|
|
@@ -401,7 +401,7 @@ OUTPUT
|
|
401
401
|
stdout.should == <<-OUTPUT
|
402
402
|
Downgrading to my_addon on example... done, v99 (free)
|
403
403
|
Don't Panic
|
404
|
-
Use `
|
404
|
+
Use `pogo addons:docs my_addon` to view documentation.
|
405
405
|
OUTPUT
|
406
406
|
end
|
407
407
|
end
|
@@ -496,7 +496,7 @@ STDERR
|
|
496
496
|
stderr, stdout = execute('addons:docs unknown')
|
497
497
|
stderr.should == <<-STDERR
|
498
498
|
! `unknown` is not a heroku add-on.
|
499
|
-
! See `
|
499
|
+
! See `pogo addons:list` for all available addons.
|
500
500
|
STDERR
|
501
501
|
stdout.should == ''
|
502
502
|
end
|
@@ -506,7 +506,7 @@ STDERR
|
|
506
506
|
stderr.should == <<-STDERR
|
507
507
|
! `redisgoto` is not a heroku add-on.
|
508
508
|
! Perhaps you meant `redistogo`.
|
509
|
-
! See `
|
509
|
+
! See `pogo addons:list` for all available addons.
|
510
510
|
STDERR
|
511
511
|
stdout.should == ''
|
512
512
|
end
|
@@ -578,7 +578,7 @@ STDERR
|
|
578
578
|
stderr, stdout = execute('addons:open unknown')
|
579
579
|
stderr.should == <<-STDERR
|
580
580
|
! `unknown` is not a heroku add-on.
|
581
|
-
! See `
|
581
|
+
! See `pogo addons:list` for all available addons.
|
582
582
|
STDERR
|
583
583
|
stdout.should == ''
|
584
584
|
end
|
@@ -588,7 +588,7 @@ STDERR
|
|
588
588
|
stderr.should == <<-STDERR
|
589
589
|
! `redisgoto` is not a heroku add-on.
|
590
590
|
! Perhaps you meant `redistogo`.
|
591
|
-
! See `
|
591
|
+
! See `pogo addons:list` for all available addons.
|
592
592
|
STDERR
|
593
593
|
stdout.should == ''
|
594
594
|
end
|
@@ -8,7 +8,7 @@ describe Heroku::Command::Help do
|
|
8
8
|
it "should show root help with no args" do
|
9
9
|
stderr, stdout = execute("help")
|
10
10
|
stderr.should == ""
|
11
|
-
stdout.should include "Usage:
|
11
|
+
stdout.should include "Usage: pogo COMMAND [--app APP] [command-specific-options]"
|
12
12
|
stdout.should include "apps"
|
13
13
|
stdout.should include "help"
|
14
14
|
end
|
@@ -33,7 +33,7 @@ describe Heroku::Command::Help do
|
|
33
33
|
it "should show command help with --help" do
|
34
34
|
stderr, stdout = execute("apps:create --help")
|
35
35
|
stderr.should == ""
|
36
|
-
stdout.should include "Usage:
|
36
|
+
stdout.should include "Usage: pogo apps:create"
|
37
37
|
stdout.should include "create a new app"
|
38
38
|
stdout.should_not include "Additional commands"
|
39
39
|
end
|
@@ -42,7 +42,7 @@ describe Heroku::Command::Help do
|
|
42
42
|
stderr, stdout = execute("help create")
|
43
43
|
stderr.should == ""
|
44
44
|
stdout.should include "Alias: create redirects to apps:create"
|
45
|
-
stdout.should include "Usage:
|
45
|
+
stdout.should include "Usage: pogo apps:create"
|
46
46
|
stdout.should include "create a new app"
|
47
47
|
stdout.should_not include "Additional commands"
|
48
48
|
end
|
@@ -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 `
|
53
|
+
! sudo:sandwich is not a heroku command. See `pogo help`.
|
54
54
|
STDERR
|
55
55
|
stdout.should == ""
|
56
56
|
end
|
@@ -58,13 +58,13 @@ STDERR
|
|
58
58
|
it "should show help with naked -h" do
|
59
59
|
stderr, stdout = execute("-h")
|
60
60
|
stderr.should == ""
|
61
|
-
stdout.should include "Usage:
|
61
|
+
stdout.should include "Usage: pogo COMMAND"
|
62
62
|
end
|
63
63
|
|
64
64
|
it "should show help with naked --help" do
|
65
65
|
stderr, stdout = execute("--help")
|
66
66
|
stderr.should == ""
|
67
|
-
stdout.should include "Usage:
|
67
|
+
stdout.should include "Usage: pogo COMMAND"
|
68
68
|
end
|
69
69
|
|
70
70
|
describe "with legacy help" do
|