dokku_client 0.8 → 0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dokku_client/cli.rb +9 -9
- data/lib/dokku_client/plugins/common.rb +10 -0
- data/lib/dokku_client/plugins/config.rb +8 -0
- data/lib/dokku_client/plugins/memcached.rb +9 -0
- data/lib/dokku_client/plugins/mongodb.rb +11 -0
- data/lib/dokku_client/plugins/postgresql.rb +10 -0
- data/lib/dokku_client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98487c367379ec7fe21e9cd1ba2f9aea6fb491e2
|
4
|
+
data.tar.gz: 846d0acb2ea573cb1ef92c102d9105898702576e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b70e4db5d19ea9f9d070785c5e271a9a8097e30aee7947cd9fc30e9415061eaa69feccde3e853105f41bce2137a8f370c8933abd6303607b29404e9596dff9b8
|
7
|
+
data.tar.gz: 28e373b20dada52682a1ee324a2f9ef27b0b72fe66405acaf1f23b624885e6aeea0f9f051505b74505f75fe67753d10be60ad5d59db9ef28f5ffca14d0700014
|
data/lib/dokku_client/cli.rb
CHANGED
@@ -149,16 +149,16 @@ module DokkuClient
|
|
149
149
|
@options = {}
|
150
150
|
|
151
151
|
opt_parser = OptionParser.new do |opts|
|
152
|
-
opts.banner = "\nDokkuClient ver. #{DokkuClient::VERSION}\
|
153
|
-
opts.separator "
|
154
|
-
opts.separator "
|
155
|
-
opts
|
156
|
-
opts
|
157
|
-
opts
|
158
|
-
opts
|
159
|
-
opts
|
152
|
+
opts.banner = "\nDokkuClient ver. #{DokkuClient::VERSION}\n\nCommands (aliases in brackets)"
|
153
|
+
opts.separator "\nUsage: dokku <COMMAND> [OPTIONS]"
|
154
|
+
opts.separator "\n version show gem version"
|
155
|
+
dokku_common.commands(opts)
|
156
|
+
dokku_config.commands(opts)
|
157
|
+
dokku_memcached.commands(opts)
|
158
|
+
dokku_mongodb.commands(opts)
|
159
|
+
dokku_postgresql.commands(opts)
|
160
160
|
opts.separator ""
|
161
|
-
opts.separator "
|
161
|
+
opts.separator "\nOptions"
|
162
162
|
|
163
163
|
opts.on_tail("-h", "--help", "Show this message") do
|
164
164
|
puts opts
|
@@ -29,6 +29,16 @@ module DokkuClient
|
|
29
29
|
dokku "plugins"
|
30
30
|
end
|
31
31
|
|
32
|
+
def commands opts
|
33
|
+
opts.separator "\n Common commands:"
|
34
|
+
opts.separator " logs show app logs"
|
35
|
+
opts.separator " run (r) '<command>' run command (unfortunately fon now you have to type command in quotes)"
|
36
|
+
opts.separator " url (u) show link to aplication"
|
37
|
+
opts.separator " plugins (p) show installed plugins on dokku host"
|
38
|
+
opts.separator " rc <env> run rails console for application (pass 'staging' to load staging console, or leave empty for production)"
|
39
|
+
opts.separator " rdm run database migrations"
|
40
|
+
end
|
41
|
+
|
32
42
|
end
|
33
43
|
end
|
34
44
|
end
|
@@ -20,6 +20,14 @@ module DokkuClient
|
|
20
20
|
def unset_variables keys
|
21
21
|
dokku "config:unset #{@options["project-name"]} #{keys}"
|
22
22
|
end
|
23
|
+
|
24
|
+
def commands opts
|
25
|
+
opts.separator "\n Config commands:"
|
26
|
+
opts.separator " config show environment variables for project"
|
27
|
+
opts.separator " get_config <KEY> show exact environment variable"
|
28
|
+
opts.separator " set_config KEY=VALUE [KEY2=VALUE2] set new environment variables"
|
29
|
+
opts.separator " unset_config KEY [KEY2] remove environment variables"
|
30
|
+
end
|
23
31
|
end
|
24
32
|
end
|
25
33
|
end
|
@@ -25,6 +25,15 @@ module DokkuClient
|
|
25
25
|
dokku "memcached:link #{@options["project-name"]} #{container}"
|
26
26
|
end
|
27
27
|
|
28
|
+
def commands opts
|
29
|
+
opts.separator "\n Memcached commands:"
|
30
|
+
opts.separator " create_mem create memcached container"
|
31
|
+
opts.separator " delete_mem delete memcached container"
|
32
|
+
opts.separator " info_mem display container informations"
|
33
|
+
opts.separator " logs_mem display last logs from memcached container"
|
34
|
+
opts.separator " link_mem <container> link an app to memcached container"
|
35
|
+
end
|
36
|
+
|
28
37
|
end
|
29
38
|
end
|
30
39
|
end
|
@@ -33,6 +33,17 @@ module DokkuClient
|
|
33
33
|
dokku "mongodb:status"
|
34
34
|
end
|
35
35
|
|
36
|
+
def commands opts
|
37
|
+
opts.separator "\n MongoDB commands:"
|
38
|
+
opts.separator " create_mongo create a mongo database"
|
39
|
+
opts.separator " delete_mongo delete a mongo database"
|
40
|
+
opts.separator " console_mongo lunch mongodb console as admin"
|
41
|
+
opts.separator " link_mongo link mongo container to application"
|
42
|
+
opts.separator " logs_mongo display logs for mongo container"
|
43
|
+
opts.separator " list_mongo list all mongo databases"
|
44
|
+
opts.separator " status_mongo display status of mongo container"
|
45
|
+
end
|
46
|
+
|
36
47
|
end
|
37
48
|
end
|
38
49
|
end
|
@@ -37,6 +37,16 @@ module DokkuClient
|
|
37
37
|
#dokku "postgresql:restore #{db} < #{file}"
|
38
38
|
end
|
39
39
|
|
40
|
+
def commands opts
|
41
|
+
opts.separator "\n Postgresql commands:"
|
42
|
+
opts.separator " create_postgres create a postgresql database"
|
43
|
+
opts.separator " delete_postgres delete specified postgresql database"
|
44
|
+
opts.separator " info_postgres display database information"
|
45
|
+
opts.separator " link_postgres link an app to a postgresql container"
|
46
|
+
opts.separator " list_postgres display list of postgresql containers"
|
47
|
+
opts.separator " logs_postgres display last logs from postgresql container"
|
48
|
+
end
|
49
|
+
|
40
50
|
end
|
41
51
|
end
|
42
52
|
end
|
data/lib/dokku_client/version.rb
CHANGED