dokku_client 0.8 → 0.9

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 30374450dba8d4ccc65aaa75b37c3c61b9fe6ae9
4
- data.tar.gz: 72a0c0a0f3a1fc499ba518fd66eb19463b7b8b39
3
+ metadata.gz: 98487c367379ec7fe21e9cd1ba2f9aea6fb491e2
4
+ data.tar.gz: 846d0acb2ea573cb1ef92c102d9105898702576e
5
5
  SHA512:
6
- metadata.gz: e3a0f6a1c04f2104159fe5e0b50acac70e483f512efb66efe66a589241fa0ff94b784fbf7c371d3d121e5e64542117631802ff7434774536beec609eacb8cad3
7
- data.tar.gz: 33fdfb62161e41c787fa53315e86fa785657aa4e66277cd6fb33d1468d0020d39ef269abf113e0c5671b2a49579e30058abfa263d71c8b2a2c124ff7725a1ffb
6
+ metadata.gz: b70e4db5d19ea9f9d070785c5e271a9a8097e30aee7947cd9fc30e9415061eaa69feccde3e853105f41bce2137a8f370c8933abd6303607b29404e9596dff9b8
7
+ data.tar.gz: 28e373b20dada52682a1ee324a2f9ef27b0b72fe66405acaf1f23b624885e6aeea0f9f051505b74505f75fe67753d10be60ad5d59db9ef28f5ffca14d0700014
@@ -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}\nUsage: dokku <COMMAND> [OPTIONS]\n"
153
- opts.separator "Commands"
154
- opts.separator " logs show app logs"
155
- opts.separator " version show gem version"
156
- opts.separator " config show environment variables for project"
157
- opts.separator " get_config <KEY> show exact environment variable"
158
- opts.separator " set_config KEY=VALUE [KEY2=VALUE2] set new environment variables"
159
- opts.separator " unset_config KEY [KEY2] remove environment variables"
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 "Options"
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
@@ -1,3 +1,3 @@
1
1
  module DokkuClient
2
- VERSION = '0.8'
2
+ VERSION = '0.9'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dokku_client
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.8'
4
+ version: '0.9'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kuba Łasecki