dokku-installer-cli 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/dokku +16 -2
- data/lib/dokku_installer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43d7f01230c81b0604d1aa355385f1201df43484
|
4
|
+
data.tar.gz: c43b73a686ab83e0d8cd99829d808ad81943de8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87a6a3522696b1591515e32118cdc3b67a78f426b57b8704078b6ab0880f33c206f27d43d6504ae2159900a28cb1c3be2018d5e680c4c2fbf7abceaa5cb3bb71
|
7
|
+
data.tar.gz: 8cd7ef521f8c6bb0242eef8d00301dca5df229d7702ee6976215764128849cb2bc983837cbab54b2afdc013eec1a00392814313f99f1c8e3cea079bf68301d28
|
data/bin/dokku
CHANGED
@@ -37,7 +37,13 @@ module DokkuInstaller
|
|
37
37
|
|
38
38
|
desc "logs [-t]", "Show the last logs for the application (-t follows)"
|
39
39
|
def logs(*args)
|
40
|
-
|
40
|
+
if args.first && args.first.strip == "-t"
|
41
|
+
command = "ssh dokku@#{domain} logs #{app_name} -t"
|
42
|
+
puts "Running #{command}..."
|
43
|
+
exec(command)
|
44
|
+
else
|
45
|
+
run_command "logs #{app_name}"
|
46
|
+
end
|
41
47
|
end
|
42
48
|
|
43
49
|
desc "open", "Open the application in your default browser"
|
@@ -52,7 +58,15 @@ module DokkuInstaller
|
|
52
58
|
|
53
59
|
desc "run <cmd>", "Run a command in the environment of the application"
|
54
60
|
def walk(*args)
|
55
|
-
|
61
|
+
command = "#{args.join(' ')}"
|
62
|
+
case command.gsub(" ", "")
|
63
|
+
when "rakedb:drop"
|
64
|
+
puts "You cannot use `rake db:drop`. Use Dokku directly to delete the database."
|
65
|
+
when "rakedb:create"
|
66
|
+
puts "You cannot use `rake db:create`. Use Dokku directly to create the database."
|
67
|
+
else
|
68
|
+
run_command "run #{app_name} #{command}"
|
69
|
+
end
|
56
70
|
end
|
57
71
|
|
58
72
|
desc "ssl:certificate <file path>", "Add a signed certificate for SSL (server.crt)"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dokku-installer-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Pattison
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|